/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Ventana.java
 *
 * Created on 18-mar-2012, 22:03:02
 */
package ui;

import controladores.Fachada;
import io.AgendaDTO;
import io.CajaChicaDTO;
import io.CuotaDTO;
import io.InfoClieMesDTO;
import io.InformeDiarioDTO;
import io.MotoCuotaDTO;
import io.MotoDTO;
import io.PagoDTO;
import io.PersonaDTO;
import io.PlanDTO;
import io.RepuestosServicesMotoEntregaDTO;
import io.VentaDTO;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.print.PrinterException;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.logging.Level;
import java.util.logging.Logger;
import persistencia.DAOException;

/**
 * Esta es la clase principal del programa en la que se agrupan todas las
 * intefaces gráficas
 * @author nahuel
 */
public class Ventana extends javax.swing.JFrame {

    private String infMes;
    private String infAño;
    private String fecha1;
    private String fecha2;
    private String mesPalabra;
    private String nombreCliente;
    private String numeroCuota;
    private String montoEntrega; 

    /** Creates new form Ventana */
    public Ventana() {
        initComponents();
        this.jDialogAgendaAgregarContacto.setLocationRelativeTo(this);
        this.jDialogAgendaAdvertencia.setLocationRelativeTo(this);
        this.jDialogAgendaEliminarContacto.setLocationRelativeTo(this);
        this.jDialogAgregarPago.setLocationRelativeTo(this);
        this.jDialogErrorConexionBD.setLocationRelativeTo(this);
        this.jDialogError.setLocationRelativeTo(this);
        this.jDialogCambiarPlan.setLocationRelativeTo(this);
        this.jDialogAgregarMovimientoCaja.setLocationRelativeTo(this);
        this.jDialogCajaEliminarMovimiento.setLocationRelativeTo(this);
        this.jDialogAdvertenciaCaja.setLocationRelativeTo(this);
        this.jDialogNotificacion.setLocationRelativeTo(this);
        this.jDialogEliminarVenta.setLocationRelativeTo(this);
        this.jDialogEliminarPlan.setLocationRelativeTo(this);
        this.jDialogImprimirCuota.setLocationRelativeTo(this);
        this.jDialogErrorConexionBD.setLocationRelativeTo(this);
        this.formWindowOpened(null);
        
        //Lo siguiente setea en las pestaÃ±as informe diario y informe clientes meses el mes y aÃ±o actual
        Calendar ahoraCal = Calendar.getInstance();
        this.infAnios.setSelectedIndex(ahoraCal.get(Calendar.YEAR)-2008); 
        this.inf2anios.setSelectedIndex(ahoraCal.get(Calendar.YEAR)-2012); 
        this.infMeses.setSelectedIndex(ahoraCal.get(Calendar.MONTH));
        
        if (this.testearConexion()) {
            //para que aparezca maximizada la ventana
            this.setExtendedState(MAXIMIZED_BOTH);            
                       
            //Para la venta
            this.jPanelDatosMotovehiculo.setVisible(true);
            this.jPanelDatosService.setVisible(false);
            this.jPanelDatosRepuesto.setVisible(false);

            this.jPanelBuscarVentas.setVisible(false);
            this.jPanelDatosVenta.setVisible(true);
            this.jPanelCuotasVenta.setVisible(false);
            this.jButtonGuardarNuevaVenta.setVisible(true);
            this.jButtonImprimirVenta.setVisible(false);
            this.jButtonImprimirComprobanteVenta.setVisible(false);
            this.jButtonGuardarCambiosVenta.setVisible(false);
            this.jButtonEliminarVenta.setVisible(false);
            this.jPanelDatosPagoCuotas.setVisible(false);
            this.jTabbedPaneDatosGarantes.setVisible(false);
            this.jPanelDatosVenta.setVisible(false);
            
        }
        this.jScrollPane1.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane14.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane15.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane16.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane17.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane18.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane19.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane2.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane3.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPane4.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneAgendaTabla.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneBuscarVenta.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneCuotasVenta.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneDescripciónAgregarPago.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneImprimirComprobante.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneInf1.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneInf2.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneInfClie1.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneInformeClientes.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPanePagosVerPagos.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPanePlanesVenta.getVerticalScrollBar().setUnitIncrement(25);
        this.jScrollPaneVentas.getVerticalScrollBar().setUnitIncrement(25);
                
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jDialogAgendaAgregarContacto = new javax.swing.JDialog();
        jLabelAgregarAgendaNombre = new javax.swing.JLabel();
        jLabelAgregarAgendaApellido = new javax.swing.JLabel();
        jLabelAgregarAgendaDireccion = new javax.swing.JLabel();
        jLabelAgregarAgendaTelefono = new javax.swing.JLabel();
        jLabelAgregarAgendaEmail = new javax.swing.JLabel();
        AgregarAgendaNombre = new javax.swing.JTextField();
        AgregarAgendaApellido = new javax.swing.JTextField();
        AgregarAgendaDireccion = new javax.swing.JTextField();
        AgregarAgendaTelefono = new javax.swing.JTextField();
        AgregarAgendaEmail = new javax.swing.JTextField();
        jLabelAgregarAgendaObsevaciones = new javax.swing.JLabel();
        AgregarAgendaObsevaciones = new javax.swing.JTextField();
        AgregarAgendaAceptar = new javax.swing.JButton();
        AgregarAgendaCancelar = new javax.swing.JButton();
        jDialogAgendaAdvertencia = new javax.swing.JDialog();
        jLabelAdvertenciaAceptar = new javax.swing.JLabel();
        jButtonAdvertenciaAceptar = new javax.swing.JButton();
        jDialogAgendaEliminarContacto = new javax.swing.JDialog();
        jLabelAdvertenciaEliminarContacto = new javax.swing.JLabel();
        jButtonEliminarContactoSi = new javax.swing.JButton();
        jButtonEliminarContactoNo = new javax.swing.JButton();
        jDialogAgregarPago = new javax.swing.JDialog();
        jPanelAgregarPago = new javax.swing.JPanel();
        jTextFieldMontoAgregarPago = new javax.swing.JTextField();
        jLabelDatosPagoAgregarPago = new javax.swing.JLabel();
        jLabelMontoAgregarPago = new javax.swing.JLabel();
        jLabelInteresAgregarPago = new javax.swing.JLabel();
        jLabelFechaCuotaAgregarPago = new javax.swing.JLabel();
        jTextFieldInteresAgregarPago = new javax.swing.JTextField();
        jButtonCancelarAgregarPago = new javax.swing.JButton();
        jTextFieldFechaCuotaAgregarPago = new javax.swing.JTextField();
        jTextFieldMontoAdeudadoAgregarPago = new javax.swing.JTextField();
        jScrollPaneDescripciónAgregarPago = new javax.swing.JScrollPane();
        jTextAreaDescripciónAgregarPago = new javax.swing.JTextArea();
        jButtonImprimirReciboAgregarPago = new javax.swing.JButton();
        jLabelFechaPagoAgregarPago = new javax.swing.JLabel();
        jLabelDescripciónAgregarPago = new javax.swing.JLabel();
        jLabelMontoAdeudadoAgregarPago = new javax.swing.JLabel();
        jButtonConfirmarAgregarPago = new javax.swing.JButton();
        jComboBoxInteresAgregarPago = new javax.swing.JComboBox();
        jDateChooserFechaPago = new com.toedter.calendar.JDateChooser();
        jLabelInteresAgregarPago1 = new javax.swing.JLabel();
        jPanelVerPagos = new javax.swing.JPanel();
        jLabelVerPagosCuotaNumero = new javax.swing.JLabel();
        jScrollPanePagosVerPagos = new javax.swing.JScrollPane();
        jTablePagosVerPagos = new javax.swing.JTable();
        jLabelNumeroCuotaVerPagos = new javax.swing.JLabel();
        jButtonAgregarPagosVerPagos = new javax.swing.JButton();
        jButtonCerrarVerPagos = new javax.swing.JButton();
        jDialogErrorConexionBD = new javax.swing.JDialog();
        jButtonAceptarErrorConexionBD = new javax.swing.JButton();
        jLabelErrorConexionBD1 = new javax.swing.JLabel();
        jLabelErrorConexionBD2 = new javax.swing.JLabel();
        jDialogError = new javax.swing.JDialog();
        jLabelTextoError = new javax.swing.JLabel();
        jButtonAceptarError = new javax.swing.JButton();
        jDialogCambiarPlan = new javax.swing.JDialog();
        jLabelDatosPlan = new javax.swing.JLabel();
        jButtonConfirmarPlan = new javax.swing.JButton();
        jButtonCancelarPlan = new javax.swing.JButton();
        jLabelNumeroCuotasPlan = new javax.swing.JLabel();
        jLabelMontoCuotasPlan = new javax.swing.JLabel();
        jLabelFechaVencimientoPlan = new javax.swing.JLabel();
        jTextFieldNumeroCuotasPlan = new javax.swing.JTextField();
        jTextFieldMontoCuotasPlan = new javax.swing.JTextField();
        jDateChooserFechaVencimientoPlan = new com.toedter.calendar.JDateChooser();
        jLabelIniciarNumeroCuota = new javax.swing.JLabel();
        jTextFieldIniciarNumeroCuota = new javax.swing.JTextField();
        jDialogAgregarMovimientoCaja = new javax.swing.JDialog();
        jLabelDescripCaja = new javax.swing.JLabel();
        jTextFieldDescripCaja = new javax.swing.JTextField();
        jComboBoxAgregarMovimiento = new javax.swing.JComboBox();
        jLabelImporteCaja = new javax.swing.JLabel();
        jTextFieldImporteCaja = new javax.swing.JTextField();
        jRadioButtonEgresoCaja = new javax.swing.JRadioButton();
        jRadioButtonIngresoCaja = new javax.swing.JRadioButton();
        jButtonAceptarMovimiento = new javax.swing.JButton();
        jButtonCancelarMovimiento = new javax.swing.JButton();
        jRadioButtonGastosSueldos = new javax.swing.JRadioButton();
        jRadioButtonGastosGastosVarios = new javax.swing.JRadioButton();
        jRadioButtonGastosGastosFijos = new javax.swing.JRadioButton();
        buttonGroupEgresoIngreso = new javax.swing.ButtonGroup();
        jDialogCajaEliminarMovimiento = new javax.swing.JDialog();
        jButtonEliminarMovimientoCajaSi = new javax.swing.JButton();
        jButtonEliminarMovimientoGestoriaNo = new javax.swing.JButton();
        jLabelGestoriaEliminarMovimiento = new javax.swing.JLabel();
        jDialogAdvertenciaCaja = new javax.swing.JDialog();
        jLabelAdvertenciaCaja = new javax.swing.JLabel();
        jButtonAdvertenciaCajaOk = new javax.swing.JButton();
        jLabelWarning = new javax.swing.JLabel();
        buttonGroupGastos = new javax.swing.ButtonGroup()
        ;
        jDialogNotificacion = new javax.swing.JDialog();
        jLabelNotificacion = new javax.swing.JLabel();
        jButtonAceptarNotificacion = new javax.swing.JButton();
        jDialogImprimirCuota = new javax.swing.JDialog();
        jPanelImprimirRecibo = new javax.swing.JPanel();
        jLabelLecunaMotosImprimir = new javax.swing.JLabel();
        jLabeloscarehijosImprimirCuota = new javax.swing.JLabel();
        jLabelDireccionImprimirCuota = new javax.swing.JLabel();
        jLabelTelefonoImprimirCuota = new javax.swing.JLabel();
        jLabelciudadImprimirCuota = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabelFechaImprimirCuota = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabelRecibideImprimirCuota = new javax.swing.JLabel();
        jLabelPesosImprimirCuota = new javax.swing.JLabel();
        jTextFieldCantidadEnPalabras = new javax.swing.JTextField();
        jLabelEfectivoImprimirCuota = new javax.swing.JLabel();
        jTextFieldEnEfectivoImprimirCuota = new javax.swing.JTextField();
        jLabelChequeImprimirCuota = new javax.swing.JLabel();
        jTextFieldChequeImprimirCuota = new javax.swing.JTextField();
        jLabelNumerochequeImprimirCuota = new javax.swing.JLabel();
        jTextFieldNumeroChequeImprimirCuota = new javax.swing.JTextField();
        jLabelSonImprimirCuota = new javax.swing.JLabel();
        jLabelBancoImprimirCuota = new javax.swing.JLabel();
        jTextFieldBancoImprimirCuota = new javax.swing.JTextField();
        jLabelLecunaMotosImprimirCuota = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jTextFieldNombreClienteImprimirCuota = new javax.swing.JTextField();
        jTextFieldFechaReciboImprimirCuota = new javax.swing.JTextField();
        jTextFieldMontoReciboImprimirCuota = new javax.swing.JTextField();
        jLabelRotuloRecibo = new javax.swing.JLabel();
        jTextFieldIdentificadorCuota = new javax.swing.JTextField();
        jButtonImprimirRecibo = new javax.swing.JButton();
        jButtonCancelarImprimirCuota = new javax.swing.JButton();
        jDialogEliminarVenta = new javax.swing.JDialog();
        jLabelConfirmarEliminar = new javax.swing.JLabel();
        jButtonConfirmarEliminar = new javax.swing.JButton();
        jButtonCancelarEliminar = new javax.swing.JButton();
        jDialogEliminarPlan = new javax.swing.JDialog();
        jLabelConfirmarEliminarPlan = new javax.swing.JLabel();
        jButtonConfirmarEliminarPlan = new javax.swing.JButton();
        jButtonCancelarEliminarPlan = new javax.swing.JButton();
        jDialogImprimirComprobante = new javax.swing.JDialog();
        jScrollPaneImprimirComprobante = new javax.swing.JScrollPane();
        jPanelImprimir = new javax.swing.JPanel();
        jPanelImprimirComprobante = new javax.swing.JPanel();
        jTextFieldTituloComprobante = new javax.swing.JTextField();
        jTextFieldFechaComprobante = new javax.swing.JTextField();
        jTextAreaTextoComprobante = new javax.swing.JTextArea();
        jTextFieldTituloPorpietarioComprobante = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante = new javax.swing.JTextField();
        jTextFieldNombreComprobante = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante1 = new javax.swing.JTextField();
        jTextFieldDomicilioComprobante = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante2 = new javax.swing.JTextField();
        jTextFieldDNIComprobante = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante3 = new javax.swing.JTextField();
        jTextFieldFechaPorpietarioComprobante = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante4 = new javax.swing.JTextField();
        jTextFieldTelefonoComprobante = new javax.swing.JTextField();
        jTextFieldMotorMovehiculo = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante5 = new javax.swing.JTextField();
        jTextFieldColorMovehiculo = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante6 = new javax.swing.JTextField();
        jTextFieldChasisMovehiculo = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante7 = new javax.swing.JTextField();
        jTextFieldTituloPorpietarioComprobante1 = new javax.swing.JTextField();
        jTextFieldMarcaMovehiculo = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante8 = new javax.swing.JTextField();
        jTextFieldModeloMovehiculo = new javax.swing.JTextField();
        jTextFieldApellidoynombreComprobante9 = new javax.swing.JTextField();
        jTextFieldTituloPorpietarioComprobante2 = new javax.swing.JTextField();
        jTextFieldTituloPorpietarioComprobante3 = new javax.swing.JTextField();
        jButtonImprimirComprobante = new javax.swing.JButton();
        jButtonCancelarImprimirComprobante = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPaneVentas = new javax.swing.JScrollPane();
        jPanelVentas = new javax.swing.JPanel();
        jButtonBuscarVenta = new javax.swing.JButton();
        jButtonNuevaVenta = new javax.swing.JButton();
        jPanelBuscarVentas = new javax.swing.JPanel();
        jScrollPaneBuscarVenta = new javax.swing.JScrollPane();
        jTableBuscarVenta = new javax.swing.JTable();
        jPanelBuscarVenta = new javax.swing.JPanel();
        jTextFieldClienteBuscarVenta = new javax.swing.JTextField();
        jLabelClienteBuscarVenta = new javax.swing.JLabel();
        jLabelFechaBuscarVenta = new javax.swing.JLabel();
        jTextFieldFechaBuscarVenta = new javax.swing.JTextField();
        jButtonBuscar = new javax.swing.JButton();
        jButtonDeshacerBusquedaVenta = new javax.swing.JButton();
        jLabelTotalVentas = new javax.swing.JLabel();
        jPanelDatosVenta = new javax.swing.JPanel();
        jPanelDatosDeVenta = new javax.swing.JPanel();
        jLabelDatosVenta = new javax.swing.JLabel();
        jLabelTipoVenta = new javax.swing.JLabel();
        jComboBoxTipoVenta = new javax.swing.JComboBox();
        jLabelTipoPagoVenta = new javax.swing.JLabel();
        jComboBoxTipoPagoVenta = new javax.swing.JComboBox();
        jLabelFechaVenta = new javax.swing.JLabel();
        jDateChooserFechaVenta = new com.toedter.calendar.JDateChooser();
        jPanelDatosMotovehiculo = new javax.swing.JPanel();
        jTextFieldPrecioMotoVenta = new javax.swing.JTextField();
        jLabelPrecioMotoVenta = new javax.swing.JLabel();
        jLabelObservacionesMotoVenta = new javax.swing.JLabel();
        jTextFieldObservacionesMotoVenta = new javax.swing.JTextField();
        jLabelNroMotorMotoVenta = new javax.swing.JLabel();
        jTextFieldNroMotorMotoVenta = new javax.swing.JTextField();
        jLabelCilindradasMotoVenta = new javax.swing.JLabel();
        jTextFieldCilindradasMotoVenta = new javax.swing.JTextField();
        jLabelDatosMotovehiculo = new javax.swing.JLabel();
        jLabelMarcaMotoVenta = new javax.swing.JLabel();
        jTextFieldMarcaMotoVenta = new javax.swing.JTextField();
        jLabelModeloMotoVenta = new javax.swing.JLabel();
        jLabelColorMotoVenta = new javax.swing.JLabel();
        jLabelNroChasisMotoVenta = new javax.swing.JLabel();
        jTextFieldColorMotoVenta = new javax.swing.JTextField();
        jTextFieldNroChasisMotoVenta = new javax.swing.JTextField();
        jTextFieldModeloMotoVenta = new javax.swing.JTextField();
        jTextFieldKmMotoVenta = new javax.swing.JTextField();
        jLabelKmMotoVenta = new javax.swing.JLabel();
        jLabelModeloAnoMotoVenta = new javax.swing.JLabel();
        jTextFieldModeloAnoMotoVenta = new javax.swing.JTextField();
        jPanelDatosCliente = new javax.swing.JPanel();
        jLabelDatosClienteVenta = new javax.swing.JLabel();
        jLabelAyNClienteVenta = new javax.swing.JLabel();
        jLabelDireccionClienteVenta = new javax.swing.JLabel();
        jLabelDirActualClienteVenta = new javax.swing.JLabel();
        jLabelConyugueClienteVenta = new javax.swing.JLabel();
        jTextFieldConyugeClienteVenta = new javax.swing.JTextField();
        jTextFieldDirActualClienteVenta = new javax.swing.JTextField();
        jTextFieldDirClienteVenta = new javax.swing.JTextField();
        jTextFieldNombreClienteVenta = new javax.swing.JTextField();
        jTextFieldDNIClienteVenta = new javax.swing.JTextField();
        jLabelDNIClienteVenta = new javax.swing.JLabel();
        jLabelFechaNacClienteVenta = new javax.swing.JLabel();
        jLabelTelefonoClienteVenta = new javax.swing.JLabel();
        jLabelTelefono2ClienteVenta = new javax.swing.JLabel();
        jLabelObservacionesClienteVenta = new javax.swing.JLabel();
        jTextFieldObservacionesClienteVenta = new javax.swing.JTextField();
        jTextFieldTelefono2ClienteVenta = new javax.swing.JTextField();
        jTextFieldTelefonoClienteVenta = new javax.swing.JTextField();
        jTextFieldEmailClienteVenta = new javax.swing.JTextField();
        jTextFieldLocalidadClienteVenta = new javax.swing.JTextField();
        jTextFieldTrabajoClienteVenta = new javax.swing.JTextField();
        jLabelEmailClienteVenta = new javax.swing.JLabel();
        jLabelLocalidadClienteVenta = new javax.swing.JLabel();
        jLabelTrabajoClienteVenta = new javax.swing.JLabel();
        jDateChooserFechaNacClienteVenta = new com.toedter.calendar.JDateChooser();
        jTabbedPaneDatosGarantes = new javax.swing.JTabbedPane();
        jPanelDatosGarante1 = new javax.swing.JPanel();
        jLabelDatosGaranteVenta1 = new javax.swing.JLabel();
        jLabelAyNGaranteVenta1 = new javax.swing.JLabel();
        jLabelDireccionGaranteVenta1 = new javax.swing.JLabel();
        jLabelDirActualGaranteVenta1 = new javax.swing.JLabel();
        jLabelConyugueGaranteVenta1 = new javax.swing.JLabel();
        jTextFieldConyugeGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldDirActualGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldDirGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldNombreGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldDNIGaranteVenta1 = new javax.swing.JTextField();
        jLabelDNIGaranteVenta1 = new javax.swing.JLabel();
        jLabelFechaNacGaranteVenta1 = new javax.swing.JLabel();
        jLabelTelefonoGaranteVenta1 = new javax.swing.JLabel();
        jLabelTelefono2GaranteVenta1 = new javax.swing.JLabel();
        jLabelObservacionesGaranteVenta1 = new javax.swing.JLabel();
        jTextFieldObservacionesGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldTelefono2GaranteVenta1 = new javax.swing.JTextField();
        jTextFieldTelefonoGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldEmailGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldLocalidadGaranteVenta1 = new javax.swing.JTextField();
        jTextFieldTrabajoGaranteVenta1 = new javax.swing.JTextField();
        jLabelEmailGaranteVenta1 = new javax.swing.JLabel();
        jLabelLocalidadGaranteVenta1 = new javax.swing.JLabel();
        jLabelTrabajoGaranteVenta1 = new javax.swing.JLabel();
        jDateChooserFechaNacGaranteVenta1 = new com.toedter.calendar.JDateChooser();
        jPanelDatosGarante3 = new javax.swing.JPanel();
        jLabelDatosGaranteVenta2 = new javax.swing.JLabel();
        jLabelAyNGaranteVenta2 = new javax.swing.JLabel();
        jLabelDireccionGaranteVenta2 = new javax.swing.JLabel();
        jLabelDirActualGaranteVenta2 = new javax.swing.JLabel();
        jLabelConyugueGaranteVenta2 = new javax.swing.JLabel();
        jTextFieldConyugeGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldDirActualGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldDirGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldNombreGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldDNIGaranteVenta2 = new javax.swing.JTextField();
        jLabelDNIGaranteVenta2 = new javax.swing.JLabel();
        jLabelFechaNacGaranteVenta2 = new javax.swing.JLabel();
        jLabelTelefonoGaranteVenta2 = new javax.swing.JLabel();
        jLabelTelefono2GaranteVenta2 = new javax.swing.JLabel();
        jLabelObservacionesGaranteVenta2 = new javax.swing.JLabel();
        jTextFieldObservacionesGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldTelefono2GaranteVenta2 = new javax.swing.JTextField();
        jTextFieldTelefonoGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldEmailGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldLocalidadGaranteVenta2 = new javax.swing.JTextField();
        jTextFieldTrabajoGaranteVenta2 = new javax.swing.JTextField();
        jLabelEmailGaranteVenta2 = new javax.swing.JLabel();
        jLabelLocalidadGaranteVenta2 = new javax.swing.JLabel();
        jLabelTrabajoGaranteVenta2 = new javax.swing.JLabel();
        jDateChooserFechaNacGaranteVenta2 = new com.toedter.calendar.JDateChooser();
        jPanelCuotasVenta = new javax.swing.JPanel();
        jLabelCuotasVenta = new javax.swing.JLabel();
        jScrollPaneCuotasVenta = new javax.swing.JScrollPane();
        jTableCuotasVenta = new javax.swing.JTable();
        jLabelPlanesVenta = new javax.swing.JLabel();
        jScrollPanePlanesVenta = new javax.swing.JScrollPane();
        jTablePlanesVenta = new javax.swing.JTable();
        jButtonCambiarPlanVenta = new javax.swing.JButton();
        jButtonImprimirCuotas = new javax.swing.JButton();
        jButtonEliminarPlan = new javax.swing.JButton();
        jPanelDatosService = new javax.swing.JPanel();
        jLabelImporteServiceVenta = new javax.swing.JLabel();
        jTextFieldImporteServiceVenta = new javax.swing.JTextField();
        jLabelDescripcionServiceVenta = new javax.swing.JLabel();
        jTextFieldDescripcionServiceVenta = new javax.swing.JTextField();
        jLabelDatosServiceVenta = new javax.swing.JLabel();
        jPanelDatosRepuesto = new javax.swing.JPanel();
        jLabelImporteRespuestoVenta = new javax.swing.JLabel();
        jTextFieldImporteRespuestoVenta = new javax.swing.JTextField();
        jLabelDescripcionRespuestoVenta = new javax.swing.JLabel();
        jTextFieldDescripcionRespuestoVenta = new javax.swing.JTextField();
        jLabelDatosRespuestoVenta = new javax.swing.JLabel();
        jPanelDatosPago = new javax.swing.JPanel();
        jLabelEntregaPagoVenta = new javax.swing.JLabel();
        jTextFieldEntregaPagoVenta = new javax.swing.JTextField();
        jLabelDatosPagoVenta = new javax.swing.JLabel();
        jButtonEntregaImprimirRecibo = new javax.swing.JButton();
        jButtonImprimirComprobanteVenta = new javax.swing.JButton();
        jButtonGuardarCambiosVenta = new javax.swing.JButton();
        jButtonGuardarNuevaVenta = new javax.swing.JButton();
        jButtonCancelarVenta = new javax.swing.JButton();
        jButtonImprimirVenta = new javax.swing.JButton();
        jPanelDatosPagoCuotas = new javax.swing.JPanel();
        jLabelPlanPagoVenta = new javax.swing.JLabel();
        jTextFieldPlanPagoVenta = new javax.swing.JTextField();
        jLabelCuotasPagoVenta = new javax.swing.JLabel();
        jTextFieldCuotasPagoVenta = new javax.swing.JTextField();
        jLabelFechaPrimerVencimiento = new javax.swing.JLabel();
        jDateChooserFechaPrimerVencimiento = new com.toedter.calendar.JDateChooser();
        jButtonEliminarVenta = new javax.swing.JButton();
        jPanelAgenda = new javax.swing.JPanel();
        jScrollPaneAgendaTabla = new javax.swing.JScrollPane();
        jTableAgenda = new javax.swing.JTable();
        AgendaAgregarContacto = new javax.swing.JButton();
        AgendaEliminarContacto = new javax.swing.JButton();
        jPanelBuscarAgenda = new javax.swing.JPanel();
        jLabelEmailAgenda = new javax.swing.JLabel();
        jTextFieldAgendaBuscarEmail = new javax.swing.JTextField();
        jTextFieldAgendaBuscarTelefono = new javax.swing.JTextField();
        jLabelTelefonoAgenda = new javax.swing.JLabel();
        jLabelDireccionAgenda = new javax.swing.JLabel();
        jTextFieldAgendaBuscarDireccion = new javax.swing.JTextField();
        jTextFieldAgendaBuscarApellido = new javax.swing.JTextField();
        jLabelApellidoAgenda = new javax.swing.JLabel();
        jLabelNombreAgenda = new javax.swing.JLabel();
        jTextFieldAgendaBuscarNombre = new javax.swing.JTextField();
        jLabelObservacionesAgenda = new javax.swing.JLabel();
        jTextFieldAgendaBuscarObservaciones = new javax.swing.JTextField();
        jButtonBuscarAgenda = new javax.swing.JButton();
        jButtonDeshacerBusquedaAgenda = new javax.swing.JButton();
        jPanelCajaChica = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel2 = new javax.swing.JPanel();
        jComboBoxPlanillas = new javax.swing.JComboBox();
        jButtonAgregarMovimiento = new javax.swing.JButton();
        jButtonEliminarMovimiento = new javax.swing.JButton();
        jPanelMoto = new javax.swing.JPanel();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTableMotoEntrega = new javax.swing.JTable();
        jScrollPane15 = new javax.swing.JScrollPane();
        jTableMotoCuota = new javax.swing.JTable();
        jLabelTotalMotoEntregaTabla = new javax.swing.JLabel();
        jLabelTextoTotalMotoEntregaTabla = new javax.swing.JLabel();
        jLabelTotalMotoCuotaTabla = new javax.swing.JLabel();
        jLabelTextoTotalMotoCuotaTabla = new javax.swing.JLabel();
        jLabelPanelMotoEntrega = new javax.swing.JLabel();
        jLabelPanelMotoCuota = new javax.swing.JLabel();
        jPanelServices = new javax.swing.JPanel();
        jLabelTextoTotalServicesTabla = new javax.swing.JLabel();
        jLabelTotalServicesTabla = new javax.swing.JLabel();
        jScrollPane16 = new javax.swing.JScrollPane();
        jTableServices = new javax.swing.JTable();
        jPanelRepuestos = new javax.swing.JPanel();
        jScrollPane17 = new javax.swing.JScrollPane();
        jTableRepuestos = new javax.swing.JTable();
        jLabelTextoTotalRepuestosTabla = new javax.swing.JLabel();
        jLabelTotalRepuestosTabla = new javax.swing.JLabel();
        jPanelGastos = new javax.swing.JPanel();
        jScrollPane18 = new javax.swing.JScrollPane();
        jTableGastos = new javax.swing.JTable();
        jLabelTextoTotalGastosTabla = new javax.swing.JLabel();
        jLabelTotalGastosTabla = new javax.swing.JLabel();
        jPanelGestoria = new javax.swing.JPanel();
        jScrollPane19 = new javax.swing.JScrollPane();
        jTableGestoria = new javax.swing.JTable();
        jLabelTextoTotalGestoriaTabla = new javax.swing.JLabel();
        jLabelTotalGestoriaTabla = new javax.swing.JLabel();
        jDateChooserFechaCajaChica = new com.toedter.calendar.JDateChooser();
        jLabelFechaCajaBuscar = new javax.swing.JLabel();
        jPanelBuscarCajaChica = new javax.swing.JPanel();
        jLabelBuscarCajaChicaDescripcion = new javax.swing.JLabel();
        jTextFieldBuscarCajaChicaDescripcion = new javax.swing.JTextField();
        jLabelBuscarCajaChicaDetalle = new javax.swing.JLabel();
        jTextFieldBuscarCajaChicaDetalle = new javax.swing.JTextField();
        jLabelBuscarCajaChicaCliente = new javax.swing.JLabel();
        jTextFieldBuscarCajaChicaCliente = new javax.swing.JTextField();
        jButtonBuscarCajaChica = new javax.swing.JButton();
        jButtonDeshacerBusquedaCajaChica = new javax.swing.JButton();
        jPanelTotalesCajaChica = new javax.swing.JPanel();
        jLabelTextoTotalGestoría = new javax.swing.JLabel();
        jLabelTotalGestoria = new javax.swing.JLabel();
        jLabelFechaCajaTexto = new javax.swing.JLabel();
        jLabelFechaCaja = new javax.swing.JLabel();
        jLabelTextoTotalGastos = new javax.swing.JLabel();
        jLabelTotalGastos = new javax.swing.JLabel();
        jLabelTextoToalCaja = new javax.swing.JLabel();
        jLabelTotalCajaChica = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jLabelTextoTotalRepuestos = new javax.swing.JLabel();
        jLabelTotalRepuestos = new javax.swing.JLabel();
        jLabelTextoTotalServices = new javax.swing.JLabel();
        jLabelTotalServices = new javax.swing.JLabel();
        jLabelTextoTotalMotoEntrega = new javax.swing.JLabel();
        jLabelTotalMotoEntrega = new javax.swing.JLabel();
        jLabelTextoTotalMotoCuota = new javax.swing.JLabel();
        jLabelTotalMotoCuota = new javax.swing.JLabel();
        jLabelTotalVarios = new javax.swing.JLabel();
        jLabelTextoVarios = new javax.swing.JLabel();
        jPanelCajaChicaVarios = new javax.swing.JPanel();
        jLabelTotalVariosTabla = new javax.swing.JLabel();
        jLabelTextoTotalVarios = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTableVarios = new javax.swing.JTable();
        jPanelMorosos = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTableMorosos = new javax.swing.JTable();
        jScrollPaneInformeClientes = new javax.swing.JScrollPane();
        jPanelInformeClientes = new javax.swing.JPanel();
        titInfDet2 = new javax.swing.JLabel();
        selAño2 = new javax.swing.JLabel();
        inf2anios = new javax.swing.JComboBox();
        jScrollPaneInfClie1 = new javax.swing.JScrollPane();
        jTableInfCli1 = new javax.swing.JTable();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTableInfCli2 = new javax.swing.JTable();
        titInfRes2 = new javax.swing.JLabel();
        impInfMes1 = new javax.swing.JButton();
        impInfMes2 = new javax.swing.JButton();
        jScrollPaneInformeDiario = new javax.swing.JScrollPane();
        jPanelInformeDiario = new javax.swing.JPanel();
        titInfDet = new javax.swing.JLabel();
        selAño = new javax.swing.JLabel();
        selMes = new javax.swing.JLabel();
        infAnios = new javax.swing.JComboBox();
        infMeses = new javax.swing.JComboBox();
        jScrollPaneInf1 = new javax.swing.JScrollPane();
        jTableInf1 = new javax.swing.JTable();
        titInfRes = new javax.swing.JLabel();
        jScrollPaneInf2 = new javax.swing.JScrollPane();
        jTableinf2 = new javax.swing.JTable();
        impInfDiario2 = new javax.swing.JButton();
        impInfDiario1 = new javax.swing.JButton();

        jDialogAgendaAgregarContacto.setTitle("Agregar contacto");
        jDialogAgendaAgregarContacto.setMinimumSize(new java.awt.Dimension(400, 400));
        jDialogAgendaAgregarContacto.setResizable(false);

        jLabelAgregarAgendaNombre.setText("Nombre:");

        jLabelAgregarAgendaApellido.setText("Apellido:");

        jLabelAgregarAgendaDireccion.setText("Dirección:");

        jLabelAgregarAgendaTelefono.setText("Teléfono:");

        jLabelAgregarAgendaEmail.setText("E-mail:");

        jLabelAgregarAgendaObsevaciones.setText("Observaciones:");

        AgregarAgendaAceptar.setFont(new java.awt.Font("Tahoma", 1, 11));
        AgregarAgendaAceptar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        AgregarAgendaAceptar.setText("Aceptar");
        AgregarAgendaAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AgregarAgendaAceptarActionPerformed(evt);
            }
        });

        AgregarAgendaCancelar.setFont(new java.awt.Font("Tahoma", 1, 11));
        AgregarAgendaCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        AgregarAgendaCancelar.setText("Cancelar");
        AgregarAgendaCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AgregarAgendaCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogAgendaAgregarContactoLayout = new javax.swing.GroupLayout(jDialogAgendaAgregarContacto.getContentPane());
        jDialogAgendaAgregarContacto.getContentPane().setLayout(jDialogAgendaAgregarContactoLayout);
        jDialogAgendaAgregarContactoLayout.setHorizontalGroup(
            jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgendaAgregarContactoLayout.createSequentialGroup()
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgendaAgregarContactoLayout.createSequentialGroup()
                        .addGap(141, 141, 141)
                        .addComponent(AgregarAgendaAceptar)
                        .addGap(35, 35, 35)
                        .addComponent(AgregarAgendaCancelar))
                    .addGroup(jDialogAgendaAgregarContactoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jDialogAgendaAgregarContactoLayout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelAgregarAgendaEmail)
                                    .addComponent(jLabelAgregarAgendaTelefono)
                                    .addComponent(jLabelAgregarAgendaApellido)
                                    .addComponent(jLabelAgregarAgendaDireccion)
                                    .addComponent(jLabelAgregarAgendaNombre)))
                            .addComponent(jLabelAgregarAgendaObsevaciones))
                        .addGap(36, 36, 36)
                        .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(AgregarAgendaObsevaciones, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                            .addComponent(AgregarAgendaEmail, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                            .addComponent(AgregarAgendaTelefono, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                            .addComponent(AgregarAgendaDireccion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                            .addComponent(AgregarAgendaApellido, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE)
                            .addComponent(AgregarAgendaNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 253, Short.MAX_VALUE))))
                .addGap(78, 78, 78))
        );
        jDialogAgendaAgregarContactoLayout.setVerticalGroup(
            jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgendaAgregarContactoLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaNombre)
                    .addComponent(AgregarAgendaNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaApellido)
                    .addComponent(AgregarAgendaApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaDireccion)
                    .addComponent(AgregarAgendaDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaTelefono)
                    .addComponent(AgregarAgendaTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaEmail)
                    .addComponent(AgregarAgendaEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelAgregarAgendaObsevaciones)
                    .addComponent(AgregarAgendaObsevaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addGroup(jDialogAgendaAgregarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(AgregarAgendaCancelar)
                    .addComponent(AgregarAgendaAceptar))
                .addContainerGap(50, Short.MAX_VALUE))
        );

        jDialogAgendaAdvertencia.setTitle("Advertencia");
        jDialogAgendaAdvertencia.setMinimumSize(new java.awt.Dimension(360, 140));

        jLabelAdvertenciaAceptar.setText("Por favor, seleccione un contacto para eliminar");

        jButtonAdvertenciaAceptar.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAdvertenciaAceptar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAdvertenciaAceptar.setText("Aceptar");
        jButtonAdvertenciaAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAdvertenciaAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogAgendaAdvertenciaLayout = new javax.swing.GroupLayout(jDialogAgendaAdvertencia.getContentPane());
        jDialogAgendaAdvertencia.getContentPane().setLayout(jDialogAgendaAdvertenciaLayout);
        jDialogAgendaAdvertenciaLayout.setHorizontalGroup(
            jDialogAgendaAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgendaAdvertenciaLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addGroup(jDialogAgendaAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelAdvertenciaAceptar)
                    .addGroup(jDialogAgendaAdvertenciaLayout.createSequentialGroup()
                        .addGap(70, 70, 70)
                        .addComponent(jButtonAdvertenciaAceptar)))
                .addContainerGap(58, Short.MAX_VALUE))
        );
        jDialogAgendaAdvertenciaLayout.setVerticalGroup(
            jDialogAgendaAdvertenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgendaAdvertenciaLayout.createSequentialGroup()
                .addContainerGap(28, Short.MAX_VALUE)
                .addComponent(jLabelAdvertenciaAceptar)
                .addGap(18, 18, 18)
                .addComponent(jButtonAdvertenciaAceptar)
                .addGap(24, 24, 24))
        );

        jDialogAgendaEliminarContacto.setTitle("Eliminar contacto");
        jDialogAgendaEliminarContacto.setMinimumSize(new java.awt.Dimension(400, 150));

        jLabelAdvertenciaEliminarContacto.setText("¿Está seguro que desea eliminar este contacto de la agenda?");

        jButtonEliminarContactoSi.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarContactoSi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarContactoSi.setText("Si");
        jButtonEliminarContactoSi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarContactoSiActionPerformed(evt);
            }
        });

        jButtonEliminarContactoNo.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarContactoNo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarContactoNo.setText("No");
        jButtonEliminarContactoNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarContactoNoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogAgendaEliminarContactoLayout = new javax.swing.GroupLayout(jDialogAgendaEliminarContacto.getContentPane());
        jDialogAgendaEliminarContacto.getContentPane().setLayout(jDialogAgendaEliminarContactoLayout);
        jDialogAgendaEliminarContactoLayout.setHorizontalGroup(
            jDialogAgendaEliminarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgendaEliminarContactoLayout.createSequentialGroup()
                .addGroup(jDialogAgendaEliminarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAgendaEliminarContactoLayout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addComponent(jLabelAdvertenciaEliminarContacto))
                    .addGroup(jDialogAgendaEliminarContactoLayout.createSequentialGroup()
                        .addGap(108, 108, 108)
                        .addComponent(jButtonEliminarContactoSi)
                        .addGap(52, 52, 52)
                        .addComponent(jButtonEliminarContactoNo)))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jDialogAgendaEliminarContactoLayout.setVerticalGroup(
            jDialogAgendaEliminarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgendaEliminarContactoLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLabelAdvertenciaEliminarContacto)
                .addGap(18, 18, 18)
                .addGroup(jDialogAgendaEliminarContactoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarContactoSi)
                    .addComponent(jButtonEliminarContactoNo))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jDialogAgregarPago.setTitle("Agregar Pago");
        jDialogAgregarPago.setMinimumSize(new java.awt.Dimension(750, 400));
        jDialogAgregarPago.setModal(true);

        jLabelDatosPagoAgregarPago.setText("Datos del pago");

        jLabelMontoAgregarPago.setText("Monto a pagar");

        jLabelInteresAgregarPago.setText("Interés a aplicar:");

        jLabelFechaCuotaAgregarPago.setText("Fecha de vencimiento de la cuota");

        jTextFieldInteresAgregarPago.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldInteresAgregarPagoFocusLost(evt);
            }
        });

        jButtonCancelarAgregarPago.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarAgregarPago.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarAgregarPago.setText("Cancelar");
        jButtonCancelarAgregarPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarAgregarPagoActionPerformed(evt);
            }
        });

        jTextFieldFechaCuotaAgregarPago.setEditable(false);

        jTextFieldMontoAdeudadoAgregarPago.setEditable(false);

        jTextAreaDescripciónAgregarPago.setColumns(20);
        jTextAreaDescripciónAgregarPago.setRows(5);
        jScrollPaneDescripciónAgregarPago.setViewportView(jTextAreaDescripciónAgregarPago);

        jButtonImprimirReciboAgregarPago.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonImprimirReciboAgregarPago.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonImprimirReciboAgregarPago.setText("Imprimir Recibo");
        jButtonImprimirReciboAgregarPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirReciboAgregarPagoActionPerformed(evt);
            }
        });

        jLabelFechaPagoAgregarPago.setText("Fecha de Pago");

        jLabelDescripciónAgregarPago.setText("Descripción");

        jLabelMontoAdeudadoAgregarPago.setText("Monto Adeudado");

        jButtonConfirmarAgregarPago.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonConfirmarAgregarPago.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarAgregarPago.setText("Confirmar");
        jButtonConfirmarAgregarPago.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarAgregarPagoActionPerformed(evt);
            }
        });

        jComboBoxInteresAgregarPago.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Sin interés", "Con interés" }));
        jComboBoxInteresAgregarPago.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxInteresAgregarPagoItemStateChanged(evt);
            }
        });

        jLabelInteresAgregarPago1.setText("%");

        javax.swing.GroupLayout jPanelAgregarPagoLayout = new javax.swing.GroupLayout(jPanelAgregarPago);
        jPanelAgregarPago.setLayout(jPanelAgregarPagoLayout);
        jPanelAgregarPagoLayout.setHorizontalGroup(
            jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDatosPagoAgregarPago)
                    .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                        .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelFechaPagoAgregarPago)
                                    .addComponent(jLabelMontoAdeudadoAgregarPago)
                                    .addComponent(jLabelFechaCuotaAgregarPago))
                                .addGap(18, 18, 18))
                            .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelMontoAgregarPago)
                                    .addComponent(jLabelDescripciónAgregarPago))
                                .addGap(18, 18, 18)))
                        .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldFechaCuotaAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldMontoAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                                    .addGap(181, 181, 181)
                                    .addComponent(jButtonImprimirReciboAgregarPago)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButtonConfirmarAgregarPago)
                                    .addGap(18, 18, 18)
                                    .addComponent(jButtonCancelarAgregarPago))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelAgregarPagoLayout.createSequentialGroup()
                                    .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(jDateChooserFechaPago, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jTextFieldMontoAdeudadoAgregarPago, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))
                                    .addGap(18, 18, 18)
                                    .addComponent(jComboBoxInteresAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(30, 30, 30)
                                    .addComponent(jLabelInteresAgregarPago)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jTextFieldInteresAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabelInteresAgregarPago1)))
                            .addComponent(jScrollPaneDescripciónAgregarPago, javax.swing.GroupLayout.DEFAULT_SIZE, 568, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanelAgregarPagoLayout.setVerticalGroup(
            jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosPagoAgregarPago)
                .addGap(25, 25, 25)
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFechaCuotaAgregarPago)
                    .addComponent(jTextFieldFechaCuotaAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTextFieldMontoAdeudadoAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jComboBoxInteresAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelMontoAdeudadoAgregarPago))
                    .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTextFieldInteresAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelInteresAgregarPago)
                        .addComponent(jLabelInteresAgregarPago1)))
                .addGap(18, 18, 18)
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelFechaPagoAgregarPago)
                    .addComponent(jDateChooserFechaPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldMontoAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelMontoAgregarPago))
                .addGap(22, 22, 22)
                .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAgregarPagoLayout.createSequentialGroup()
                        .addComponent(jScrollPaneDescripciónAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addGroup(jPanelAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonConfirmarAgregarPago)
                            .addComponent(jButtonImprimirReciboAgregarPago)
                            .addComponent(jButtonCancelarAgregarPago)))
                    .addComponent(jLabelDescripciónAgregarPago))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelVerPagosCuotaNumero.setText("Cuota N°");

        jTablePagosVerPagos.setModel(this.datosPagos);
        jScrollPanePagosVerPagos.setViewportView(jTablePagosVerPagos);

        jLabelNumeroCuotaVerPagos.setText("1");

        jButtonAgregarPagosVerPagos.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAgregarPagosVerPagos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonAgregarPagosVerPagos.setText("Agregar Pago");
        jButtonAgregarPagosVerPagos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarPagosVerPagosActionPerformed(evt);
            }
        });

        jButtonCerrarVerPagos.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCerrarVerPagos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/cancelar.png"))); // NOI18N
        jButtonCerrarVerPagos.setText("Cancelar");
        jButtonCerrarVerPagos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCerrarVerPagosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelVerPagosLayout = new javax.swing.GroupLayout(jPanelVerPagos);
        jPanelVerPagos.setLayout(jPanelVerPagosLayout);
        jPanelVerPagosLayout.setHorizontalGroup(
            jPanelVerPagosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVerPagosLayout.createSequentialGroup()
                .addGroup(jPanelVerPagosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelVerPagosLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelVerPagosCuotaNumero)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelNumeroCuotaVerPagos))
                    .addGroup(jPanelVerPagosLayout.createSequentialGroup()
                        .addGap(180, 180, 180)
                        .addComponent(jButtonAgregarPagosVerPagos, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34)
                        .addComponent(jButtonCerrarVerPagos, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPanePagosVerPagos, javax.swing.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelVerPagosLayout.setVerticalGroup(
            jPanelVerPagosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVerPagosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelVerPagosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelVerPagosCuotaNumero)
                    .addComponent(jLabelNumeroCuotaVerPagos))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPanePagosVerPagos, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addGroup(jPanelVerPagosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCerrarVerPagos, javax.swing.GroupLayout.DEFAULT_SIZE, 41, Short.MAX_VALUE)
                    .addComponent(jButtonAgregarPagosVerPagos, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogAgregarPagoLayout = new javax.swing.GroupLayout(jDialogAgregarPago.getContentPane());
        jDialogAgregarPago.getContentPane().setLayout(jDialogAgregarPagoLayout);
        jDialogAgregarPagoLayout.setHorizontalGroup(
            jDialogAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogAgregarPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanelVerPagos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelAgregarPago, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jDialogAgregarPagoLayout.setVerticalGroup(
            jDialogAgregarPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelVerPagos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelAgregarPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(17, Short.MAX_VALUE))
        );

        jDialogErrorConexionBD.setTitle("Error");
        jDialogErrorConexionBD.setAlwaysOnTop(true);
        jDialogErrorConexionBD.setMinimumSize(new java.awt.Dimension(400, 150));
        jDialogErrorConexionBD.setModal(true);
        jDialogErrorConexionBD.setResizable(false);
        jDialogErrorConexionBD.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                jDialogErrorConexionBDWindowClosing(evt);
            }
        });

        jButtonAceptarErrorConexionBD.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAceptarErrorConexionBD.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarErrorConexionBD.setText("Aceptar");
        jButtonAceptarErrorConexionBD.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarErrorConexionBDActionPerformed(evt);
            }
        });

        jLabelErrorConexionBD1.setText("Se produjo un error en la conexión a la base de datos. ");

        jLabelErrorConexionBD2.setText("Verifique que el servidor se encuntre funcionando correctamente");

        javax.swing.GroupLayout jDialogErrorConexionBDLayout = new javax.swing.GroupLayout(jDialogErrorConexionBD.getContentPane());
        jDialogErrorConexionBD.getContentPane().setLayout(jDialogErrorConexionBDLayout);
        jDialogErrorConexionBDLayout.setHorizontalGroup(
            jDialogErrorConexionBDLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogErrorConexionBDLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jDialogErrorConexionBDLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelErrorConexionBD1)
                    .addComponent(jLabelErrorConexionBD2)
                    .addGroup(jDialogErrorConexionBDLayout.createSequentialGroup()
                        .addGap(118, 118, 118)
                        .addComponent(jButtonAceptarErrorConexionBD)))
                .addContainerGap(55, Short.MAX_VALUE))
        );
        jDialogErrorConexionBDLayout.setVerticalGroup(
            jDialogErrorConexionBDLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogErrorConexionBDLayout.createSequentialGroup()
                .addContainerGap(21, Short.MAX_VALUE)
                .addComponent(jLabelErrorConexionBD1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelErrorConexionBD2)
                .addGap(18, 18, 18)
                .addComponent(jButtonAceptarErrorConexionBD)
                .addGap(19, 19, 19))
        );

        jDialogError.setTitle("Error");
        jDialogError.setMinimumSize(new java.awt.Dimension(500, 150));
        jDialogError.setModal(true);

        jLabelTextoError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabelTextoError.setText("Se produjo un error, cierre el programa y compruebe la conexión al servidor");

        jButtonAceptarError.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAceptarError.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarError.setText("Aceptar");
        jButtonAceptarError.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarErrorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogErrorLayout = new javax.swing.GroupLayout(jDialogError.getContentPane());
        jDialogError.getContentPane().setLayout(jDialogErrorLayout);
        jDialogErrorLayout.setHorizontalGroup(
            jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogErrorLayout.createSequentialGroup()
                .addGroup(jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogErrorLayout.createSequentialGroup()
                        .addGap(157, 157, 157)
                        .addComponent(jButtonAceptarError))
                    .addGroup(jDialogErrorLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jLabelTextoError)))
                .addContainerGap(23, Short.MAX_VALUE))
        );
        jDialogErrorLayout.setVerticalGroup(
            jDialogErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogErrorLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(jLabelTextoError)
                .addGap(18, 18, 18)
                .addComponent(jButtonAceptarError)
                .addContainerGap(26, Short.MAX_VALUE))
        );

        jDialogCambiarPlan.setTitle("Cambiar Plan");
        jDialogCambiarPlan.setMinimumSize(new java.awt.Dimension(440, 300));

        jLabelDatosPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabelDatosPlan.setText("Datos del nuevo plan");

        jButtonConfirmarPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonConfirmarPlan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarPlan.setText("Confirmar");
        jButtonConfirmarPlan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarPlanActionPerformed(evt);
            }
        });

        jButtonCancelarPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarPlan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarPlan.setText("Cancelar");
        jButtonCancelarPlan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarPlanActionPerformed(evt);
            }
        });

        jLabelNumeroCuotasPlan.setText("Número de cuotas");

        jLabelMontoCuotasPlan.setText("Monto de las cuotas");

        jLabelFechaVencimientoPlan.setText("Fecha primer vencimiento");

        jLabelIniciarNumeroCuota.setText("Iniciar número de cuotas en");

        javax.swing.GroupLayout jDialogCambiarPlanLayout = new javax.swing.GroupLayout(jDialogCambiarPlan.getContentPane());
        jDialogCambiarPlan.getContentPane().setLayout(jDialogCambiarPlanLayout);
        jDialogCambiarPlanLayout.setHorizontalGroup(
            jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogCambiarPlanLayout.createSequentialGroup()
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogCambiarPlanLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelDatosPlan))
                    .addGroup(jDialogCambiarPlanLayout.createSequentialGroup()
                        .addGap(24, 24, 24)
                        .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelNumeroCuotasPlan)
                            .addComponent(jLabelMontoCuotasPlan)
                            .addComponent(jLabelFechaVencimientoPlan)
                            .addComponent(jLabelIniciarNumeroCuota))
                        .addGap(18, 18, 18)
                        .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldIniciarNumeroCuota, javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE)
                            .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jDateChooserFechaVencimientoPlan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jTextFieldMontoCuotasPlan)
                                .addComponent(jTextFieldNumeroCuotasPlan, javax.swing.GroupLayout.DEFAULT_SIZE, 127, Short.MAX_VALUE))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogCambiarPlanLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonConfirmarPlan)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCancelarPlan)))
                .addContainerGap(62, Short.MAX_VALUE))
        );
        jDialogCambiarPlanLayout.setVerticalGroup(
            jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogCambiarPlanLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosPlan)
                .addGap(18, 18, 18)
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNumeroCuotasPlan)
                    .addComponent(jTextFieldNumeroCuotasPlan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelMontoCuotasPlan)
                    .addComponent(jTextFieldMontoCuotasPlan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelFechaVencimientoPlan)
                    .addComponent(jDateChooserFechaVencimientoPlan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelIniciarNumeroCuota)
                    .addComponent(jTextFieldIniciarNumeroCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                .addGroup(jDialogCambiarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarPlan)
                    .addComponent(jButtonConfirmarPlan))
                .addGap(20, 20, 20))
        );

        jDialogAgregarMovimientoCaja.setTitle("Agregar Movimiento");
        jDialogAgregarMovimientoCaja.setMinimumSize(new java.awt.Dimension(450, 250));

        jLabelDescripCaja.setText("Descripción:");

        jComboBoxAgregarMovimiento.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Gestoría", "Gastos", "Varios" }));
        jComboBoxAgregarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxAgregarMovimientoActionPerformed(evt);
            }
        });

        jLabelImporteCaja.setText("Importe:");

        jRadioButtonEgresoCaja.setText("Egreso");

        jRadioButtonIngresoCaja.setText("Ingreso");

        jButtonAceptarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAceptarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarMovimiento.setText("Aceptar");
        jButtonAceptarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarMovimientoActionPerformed(evt);
            }
        });

        jButtonCancelarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarMovimiento.setText("Cancelar");
        jButtonCancelarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarMovimientoActionPerformed(evt);
            }
        });

        jRadioButtonGastosSueldos.setText("Sueldos");

        jRadioButtonGastosGastosVarios.setText("Gastos Varios");

        jRadioButtonGastosGastosFijos.setText("Gastos Fijos");

        javax.swing.GroupLayout jDialogAgregarMovimientoCajaLayout = new javax.swing.GroupLayout(jDialogAgregarMovimientoCaja.getContentPane());
        jDialogAgregarMovimientoCaja.getContentPane().setLayout(jDialogAgregarMovimientoCajaLayout);
        jDialogAgregarMovimientoCajaLayout.setHorizontalGroup(
            jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboBoxAgregarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelImporteCaja)
                                    .addComponent(jLabelDescripCaja))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextFieldDescripCaja, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                                        .addComponent(jTextFieldImporteCaja, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jRadioButtonEgresoCaja)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jRadioButtonIngresoCaja)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jButtonCancelarMovimiento)
                                                .addComponent(jRadioButtonGastosGastosFijos))
                                            .addComponent(jRadioButtonGastosGastosVarios)
                                            .addComponent(jRadioButtonGastosSueldos))))
                                .addGap(8, 8, 8))))
                    .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                        .addGap(85, 85, 85)
                        .addComponent(jButtonAceptarMovimiento)))
                .addContainerGap(15, Short.MAX_VALUE))
        );
        jDialogAgregarMovimientoCajaLayout.setVerticalGroup(
            jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAgregarMovimientoCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jComboBoxAgregarMovimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDescripCaja)
                    .addComponent(jTextFieldDescripCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelImporteCaja)
                    .addComponent(jTextFieldImporteCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jRadioButtonEgresoCaja)
                    .addComponent(jRadioButtonIngresoCaja)
                    .addComponent(jRadioButtonGastosGastosVarios))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButtonGastosSueldos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jRadioButtonGastosGastosFijos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                .addGroup(jDialogAgregarMovimientoCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptarMovimiento)
                    .addComponent(jButtonCancelarMovimiento))
                .addGap(22, 22, 22))
        );

        //buttonGroupEgresoIngreso = new javax.swing.ButtonGroup();
        buttonGroupEgresoIngreso.add(jRadioButtonIngresoCaja);
        buttonGroupEgresoIngreso.add(jRadioButtonEgresoCaja);

        jDialogCajaEliminarMovimiento.setTitle("Eliminar Movimiento");
        jDialogCajaEliminarMovimiento.setMinimumSize(new java.awt.Dimension(400, 130));

        jButtonEliminarMovimientoCajaSi.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarMovimientoCajaSi.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonEliminarMovimientoCajaSi.setText("Si");
        jButtonEliminarMovimientoCajaSi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarMovimientoCajaSiActionPerformed(evt);
            }
        });

        jButtonEliminarMovimientoGestoriaNo.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarMovimientoGestoriaNo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonEliminarMovimientoGestoriaNo.setText("No");
        jButtonEliminarMovimientoGestoriaNo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarMovimientoGestoriaNoActionPerformed(evt);
            }
        });

        jLabelGestoriaEliminarMovimiento.setText("¿Esta seguro que desea eliminar el Movimiento?");

        javax.swing.GroupLayout jDialogCajaEliminarMovimientoLayout = new javax.swing.GroupLayout(jDialogCajaEliminarMovimiento.getContentPane());
        jDialogCajaEliminarMovimiento.getContentPane().setLayout(jDialogCajaEliminarMovimientoLayout);
        jDialogCajaEliminarMovimientoLayout.setHorizontalGroup(
            jDialogCajaEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogCajaEliminarMovimientoLayout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(jDialogCajaEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelGestoriaEliminarMovimiento)
                    .addGroup(jDialogCajaEliminarMovimientoLayout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addComponent(jButtonEliminarMovimientoCajaSi)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonEliminarMovimientoGestoriaNo)))
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jDialogCajaEliminarMovimientoLayout.setVerticalGroup(
            jDialogCajaEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogCajaEliminarMovimientoLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addComponent(jLabelGestoriaEliminarMovimiento)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jDialogCajaEliminarMovimientoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonEliminarMovimientoGestoriaNo)
                    .addComponent(jButtonEliminarMovimientoCajaSi))
                .addContainerGap(44, Short.MAX_VALUE))
        );

        jDialogAdvertenciaCaja.setTitle("Advertencia");
        jDialogAdvertenciaCaja.setAlwaysOnTop(true);
        jDialogAdvertenciaCaja.setMinimumSize(new java.awt.Dimension(400, 150));

        jLabelAdvertenciaCaja.setText("JLABEL");
        jLabelAdvertenciaCaja.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabelAdvertenciaCaja.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        jButtonAdvertenciaCajaOk.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAdvertenciaCajaOk.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAdvertenciaCajaOk.setText("Aceptar");
        jButtonAdvertenciaCajaOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAdvertenciaCajaOkActionPerformed(evt);
            }
        });

        jLabelWarning.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelWarning.setForeground(new java.awt.Color(255, 51, 51));
        jLabelWarning.setText("ERROR");

        javax.swing.GroupLayout jDialogAdvertenciaCajaLayout = new javax.swing.GroupLayout(jDialogAdvertenciaCaja.getContentPane());
        jDialogAdvertenciaCaja.getContentPane().setLayout(jDialogAdvertenciaCajaLayout);
        jDialogAdvertenciaCajaLayout.setHorizontalGroup(
            jDialogAdvertenciaCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAdvertenciaCajaLayout.createSequentialGroup()
                .addGroup(jDialogAdvertenciaCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogAdvertenciaCajaLayout.createSequentialGroup()
                        .addGap(146, 146, 146)
                        .addComponent(jLabelWarning))
                    .addGroup(jDialogAdvertenciaCajaLayout.createSequentialGroup()
                        .addGap(137, 137, 137)
                        .addComponent(jButtonAdvertenciaCajaOk))
                    .addGroup(jDialogAdvertenciaCajaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelAdvertenciaCaja)))
                .addContainerGap(126, Short.MAX_VALUE))
        );
        jDialogAdvertenciaCajaLayout.setVerticalGroup(
            jDialogAdvertenciaCajaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAdvertenciaCajaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelWarning)
                .addGap(7, 7, 7)
                .addComponent(jLabelAdvertenciaCaja)
                .addGap(11, 11, 11)
                .addComponent(jButtonAdvertenciaCajaOk)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        buttonGroupGastos.add(jRadioButtonGastosGastosFijos);
        buttonGroupGastos.add(jRadioButtonGastosGastosVarios);
        buttonGroupGastos.add(jRadioButtonGastosSueldos);

        jDialogNotificacion.setTitle("Notificación");
        jDialogNotificacion.setMinimumSize(new java.awt.Dimension(300, 150));
        jDialogNotificacion.setModal(true);
        jDialogNotificacion.setResizable(false);

        jLabelNotificacion.setFont(new java.awt.Font("Tahoma", 3, 11));
        jLabelNotificacion.setText("jLabel1");

        jButtonAceptarNotificacion.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAceptarNotificacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonAceptarNotificacion.setText("Aceptar");
        jButtonAceptarNotificacion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAceptarNotificacionActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogNotificacionLayout = new javax.swing.GroupLayout(jDialogNotificacion.getContentPane());
        jDialogNotificacion.getContentPane().setLayout(jDialogNotificacionLayout);
        jDialogNotificacionLayout.setHorizontalGroup(
            jDialogNotificacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNotificacionLayout.createSequentialGroup()
                .addGroup(jDialogNotificacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNotificacionLayout.createSequentialGroup()
                        .addGap(88, 88, 88)
                        .addComponent(jButtonAceptarNotificacion))
                    .addGroup(jDialogNotificacionLayout.createSequentialGroup()
                        .addGap(42, 42, 42)
                        .addComponent(jLabelNotificacion)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogNotificacionLayout.setVerticalGroup(
            jDialogNotificacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNotificacionLayout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addComponent(jLabelNotificacion)
                .addGap(18, 18, 18)
                .addComponent(jButtonAceptarNotificacion)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogImprimirCuota.setTitle("Imprimir");
        jDialogImprimirCuota.setMinimumSize(new java.awt.Dimension(600, 450));
        jDialogImprimirCuota.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jPanelImprimirRecibo.setBackground(new java.awt.Color(255, 255, 255));

        jLabelLecunaMotosImprimir.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabelLecunaMotosImprimir.setText("Lecuna Motos");

        jLabeloscarehijosImprimirCuota.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabeloscarehijosImprimirCuota.setText("OSCAR LECUNA E HIJOS");

        jLabelDireccionImprimirCuota.setText("Bvard. Sansoni y 16 del Oeste");

        jLabelTelefonoImprimirCuota.setText("Tel: 03442-442032");

        jLabelciudadImprimirCuota.setText("3260 C.del Uruguay - E. Ríos");

        jLabelFechaImprimirCuota.setText("Fecha:");

        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabel7.setText("RECIBO");

        jLabelRecibideImprimirCuota.setText("Recibí de: ");

        jLabelPesosImprimirCuota.setText("La cantidad de Pesos:");

        jTextFieldCantidadEnPalabras.setBorder(null);

        jLabelEfectivoImprimirCuota.setText("En efectivo:");

        jTextFieldEnEfectivoImprimirCuota.setBorder(null);

        jLabelChequeImprimirCuota.setText("Cheque:");

        jTextFieldChequeImprimirCuota.setBorder(null);

        jLabelNumerochequeImprimirCuota.setText("Número:");

        jTextFieldNumeroChequeImprimirCuota.setBorder(null);

        jLabelSonImprimirCuota.setText("Son:  ");

        jLabelBancoImprimirCuota.setText("Banco:");

        jTextFieldBancoImprimirCuota.setBorder(null);

        jLabelLecunaMotosImprimirCuota.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabelLecunaMotosImprimirCuota.setText("LECUNA MOTOS");

        jTextFieldNombreClienteImprimirCuota.setBorder(null);

        jTextFieldFechaReciboImprimirCuota.setBorder(null);

        jTextFieldMontoReciboImprimirCuota.setBorder(null);

        jLabelRotuloRecibo.setFont(new java.awt.Font("Times New Roman", 0, 8));
        jLabelRotuloRecibo.setText("Sr. Cliente recuerde abonar sus cuotas en termino, de lo contrario se cobrara un recargo por cuota vencida.");

        jTextFieldIdentificadorCuota.setText("Nº Cuota:");
        jTextFieldIdentificadorCuota.setBorder(null);

        javax.swing.GroupLayout jPanelImprimirReciboLayout = new javax.swing.GroupLayout(jPanelImprimirRecibo);
        jPanelImprimirRecibo.setLayout(jPanelImprimirReciboLayout);
        jPanelImprimirReciboLayout.setHorizontalGroup(
            jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                .addGap(52, 52, 52)
                .addComponent(jLabeloscarehijosImprimirCuota)
                .addGap(177, 177, 177)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTelefonoImprimirCuota)
                    .addComponent(jLabelDireccionImprimirCuota)
                    .addComponent(jLabelciudadImprimirCuota))
                .addContainerGap(132, Short.MAX_VALUE))
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                .addGap(203, 203, 203)
                .addComponent(jLabelLecunaMotosImprimir)
                .addContainerGap(329, Short.MAX_VALUE))
            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                .addGap(235, 235, 235)
                .addComponent(jLabel7)
                .addContainerGap(374, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirReciboLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirReciboLayout.createSequentialGroup()
                        .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                                .addComponent(jLabelFechaImprimirCuota)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextFieldFechaReciboImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jTextFieldIdentificadorCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                                .addComponent(jLabelEfectivoImprimirCuota)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextFieldEnEfectivoImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelImprimirReciboLayout.createSequentialGroup()
                                    .addComponent(jLabelPesosImprimirCuota)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextFieldCantidadEnPalabras))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelImprimirReciboLayout.createSequentialGroup()
                                    .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                                            .addComponent(jLabelSonImprimirCuota)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jTextFieldMontoReciboImprimirCuota))
                                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelImprimirReciboLayout.createSequentialGroup()
                                            .addComponent(jLabelChequeImprimirCuota)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jTextFieldChequeImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jLabelNumerochequeImprimirCuota)))
                                    .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                                            .addGap(42, 42, 42)
                                            .addComponent(jLabelBancoImprimirCuota)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jTextFieldBancoImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jTextFieldNumeroChequeImprimirCuota))))))
                        .addContainerGap())
                    .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                        .addComponent(jLabelRecibideImprimirCuota)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNombreClienteImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, 352, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirReciboLayout.createSequentialGroup()
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabelRotuloRecibo))
                    .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                        .addContainerGap(449, Short.MAX_VALUE)
                        .addComponent(jLabelLecunaMotosImprimirCuota)))
                .addGap(118, 118, 118))
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)
        );
        jPanelImprimirReciboLayout.setVerticalGroup(
            jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelImprimirReciboLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelLecunaMotosImprimir)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionImprimirCuota)
                    .addComponent(jLabeloscarehijosImprimirCuota))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelTelefonoImprimirCuota)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelciudadImprimirCuota)
                .addGap(15, 15, 15)
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFechaImprimirCuota)
                    .addComponent(jTextFieldFechaReciboImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldIdentificadorCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelRecibideImprimirCuota)
                    .addComponent(jTextFieldNombreClienteImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPesosImprimirCuota)
                    .addComponent(jTextFieldCantidadEnPalabras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEfectivoImprimirCuota)
                    .addComponent(jTextFieldEnEfectivoImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelChequeImprimirCuota)
                    .addComponent(jTextFieldChequeImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelNumerochequeImprimirCuota)
                    .addComponent(jTextFieldNumeroChequeImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelImprimirReciboLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelSonImprimirCuota)
                    .addComponent(jLabelBancoImprimirCuota)
                    .addComponent(jTextFieldBancoImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldMontoReciboImprimirCuota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelLecunaMotosImprimirCuota)
                .addGap(9, 9, 9)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                .addComponent(jLabelRotuloRecibo)
                .addContainerGap())
        );

        jButtonImprimirRecibo.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonImprimirRecibo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonImprimirRecibo.setText("Imprimir Recibo");
        jButtonImprimirRecibo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirReciboActionPerformed(evt);
            }
        });

        jButtonCancelarImprimirCuota.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonCancelarImprimirCuota.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarImprimirCuota.setText("Cancelar");
        jButtonCancelarImprimirCuota.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarImprimirCuotaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogImprimirCuotaLayout = new javax.swing.GroupLayout(jDialogImprimirCuota.getContentPane());
        jDialogImprimirCuota.getContentPane().setLayout(jDialogImprimirCuotaLayout);
        jDialogImprimirCuotaLayout.setHorizontalGroup(
            jDialogImprimirCuotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogImprimirCuotaLayout.createSequentialGroup()
                .addGap(167, 167, 167)
                .addComponent(jButtonImprimirRecibo)
                .addGap(88, 88, 88)
                .addComponent(jButtonCancelarImprimirCuota)
                .addContainerGap(152, Short.MAX_VALUE))
            .addGroup(jDialogImprimirCuotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanelImprimirRecibo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogImprimirCuotaLayout.setVerticalGroup(
            jDialogImprimirCuotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogImprimirCuotaLayout.createSequentialGroup()
                .addContainerGap(384, Short.MAX_VALUE)
                .addGroup(jDialogImprimirCuotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonImprimirRecibo)
                    .addComponent(jButtonCancelarImprimirCuota))
                .addGap(20, 20, 20))
            .addGroup(jDialogImprimirCuotaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jDialogImprimirCuotaLayout.createSequentialGroup()
                    .addComponent(jPanelImprimirRecibo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(94, Short.MAX_VALUE)))
        );

        jDialogEliminarVenta.setTitle("Advertencia");
        jDialogEliminarVenta.setMinimumSize(new java.awt.Dimension(300, 150));
        jDialogEliminarVenta.setModal(true);
        jDialogEliminarVenta.setResizable(false);

        jLabelConfirmarEliminar.setFont(new java.awt.Font("Tahoma", 3, 11));
        jLabelConfirmarEliminar.setText("¿Está seguro que desea eliminar esta venta?");

        jButtonConfirmarEliminar.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonConfirmarEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarEliminar.setText("Si");
        jButtonConfirmarEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarEliminarActionPerformed(evt);
            }
        });

        jButtonCancelarEliminar.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarEliminar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarEliminar.setText("No");
        jButtonCancelarEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarEliminarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarVentaLayout = new javax.swing.GroupLayout(jDialogEliminarVenta.getContentPane());
        jDialogEliminarVenta.getContentPane().setLayout(jDialogEliminarVentaLayout);
        jDialogEliminarVentaLayout.setHorizontalGroup(
            jDialogEliminarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarVentaLayout.createSequentialGroup()
                .addGroup(jDialogEliminarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogEliminarVentaLayout.createSequentialGroup()
                        .addGap(95, 95, 95)
                        .addComponent(jButtonConfirmarEliminar)
                        .addGap(34, 34, 34)
                        .addComponent(jButtonCancelarEliminar))
                    .addGroup(jDialogEliminarVentaLayout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(jLabelConfirmarEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jDialogEliminarVentaLayout.setVerticalGroup(
            jDialogEliminarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarVentaLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabelConfirmarEliminar)
                .addGap(18, 18, 18)
                .addGroup(jDialogEliminarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarEliminar)
                    .addComponent(jButtonConfirmarEliminar))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jDialogEliminarPlan.setTitle("Advertencia");
        jDialogEliminarPlan.setMinimumSize(new java.awt.Dimension(300, 150));
        jDialogEliminarPlan.setModal(true);
        jDialogEliminarPlan.setResizable(false);

        jLabelConfirmarEliminarPlan.setFont(new java.awt.Font("Tahoma", 3, 11));
        jLabelConfirmarEliminarPlan.setText("¿Está seguro que desea eliminar este plan?");

        jButtonConfirmarEliminarPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonConfirmarEliminarPlan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonConfirmarEliminarPlan.setText("Si");
        jButtonConfirmarEliminarPlan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmarEliminarPlanActionPerformed(evt);
            }
        });

        jButtonCancelarEliminarPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarEliminarPlan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarEliminarPlan.setText("No");
        jButtonCancelarEliminarPlan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarEliminarPlanActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialogEliminarPlanLayout = new javax.swing.GroupLayout(jDialogEliminarPlan.getContentPane());
        jDialogEliminarPlan.getContentPane().setLayout(jDialogEliminarPlanLayout);
        jDialogEliminarPlanLayout.setHorizontalGroup(
            jDialogEliminarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarPlanLayout.createSequentialGroup()
                .addGap(90, 90, 90)
                .addComponent(jButtonConfirmarEliminarPlan)
                .addGap(36, 36, 36)
                .addComponent(jButtonCancelarEliminarPlan)
                .addContainerGap(92, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogEliminarPlanLayout.createSequentialGroup()
                .addContainerGap(24, Short.MAX_VALUE)
                .addComponent(jLabelConfirmarEliminarPlan, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18))
        );
        jDialogEliminarPlanLayout.setVerticalGroup(
            jDialogEliminarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogEliminarPlanLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jLabelConfirmarEliminarPlan)
                .addGap(18, 18, 18)
                .addGroup(jDialogEliminarPlanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConfirmarEliminarPlan)
                    .addComponent(jButtonCancelarEliminarPlan))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jDialogImprimirComprobante.setTitle("Imprimir Comprobante");
        jDialogImprimirComprobante.setMinimumSize(new java.awt.Dimension(650, 600));
        jDialogImprimirComprobante.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);

        jPanelImprimir.setMinimumSize(new java.awt.Dimension(0, 0));
        jPanelImprimir.setPreferredSize(new java.awt.Dimension(600, 795));

        jPanelImprimirComprobante.setBackground(new java.awt.Color(255, 255, 255));
        jPanelImprimirComprobante.setPreferredSize(new java.awt.Dimension(600, 732));

        jTextFieldTituloComprobante.setFont(new java.awt.Font("Arial", 1, 13));
        jTextFieldTituloComprobante.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextFieldTituloComprobante.setText("CONSTANCIA  PROVISORIA  DE  ADQUISICION  DE  VEHICULOS");
        jTextFieldTituloComprobante.setBorder(null);

        jTextFieldFechaComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldFechaComprobante.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jTextFieldFechaComprobante.setText("Concepción del Uruguay, Fecha");
        jTextFieldFechaComprobante.setBorder(null);

        jTextAreaTextoComprobante.setColumns(20);
        jTextAreaTextoComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextAreaTextoComprobante.setRows(5);
        jTextAreaTextoComprobante.setText("Por la presente dejamos constancia de que el COMPRADOR (cuyos datos figuran\na continuación) ha adquirido un MOTOVEHICULO USADO en esta concesionaria \nsituada en calle Sansóni 2097 Entre Ríos. La documentación correspondiente está\na su entera disposición para efectuar los trámites de patentamiento y/o \ntransferencia a cargo del comprador");
        jTextAreaTextoComprobante.setBorder(null);

        jTextFieldTituloPorpietarioComprobante.setFont(new java.awt.Font("Arial", 1, 13));
        jTextFieldTituloPorpietarioComprobante.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextFieldTituloPorpietarioComprobante.setText("DATOS DEL PROPIETARIO");
        jTextFieldTituloPorpietarioComprobante.setBorder(null);

        jTextFieldApellidoynombreComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante.setText("Apellido y nombres:");
        jTextFieldApellidoynombreComprobante.setBorder(null);

        jTextFieldNombreComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldNombreComprobante.setBorder(null);

        jTextFieldApellidoynombreComprobante1.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante1.setText("Domicilio particular:");
        jTextFieldApellidoynombreComprobante1.setBorder(null);

        jTextFieldDomicilioComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldDomicilioComprobante.setBorder(null);

        jTextFieldApellidoynombreComprobante2.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante2.setText("DNI:");
        jTextFieldApellidoynombreComprobante2.setBorder(null);

        jTextFieldDNIComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldDNIComprobante.setBorder(null);

        jTextFieldApellidoynombreComprobante3.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante3.setText("Fecha nacimiento:");
        jTextFieldApellidoynombreComprobante3.setBorder(null);

        jTextFieldFechaPorpietarioComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldFechaPorpietarioComprobante.setBorder(null);

        jTextFieldApellidoynombreComprobante4.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante4.setText("Tel:");
        jTextFieldApellidoynombreComprobante4.setBorder(null);

        jTextFieldTelefonoComprobante.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldTelefonoComprobante.setBorder(null);

        jTextFieldMotorMovehiculo.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldMotorMovehiculo.setBorder(null);

        jTextFieldApellidoynombreComprobante5.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante5.setText("Motor:");
        jTextFieldApellidoynombreComprobante5.setBorder(null);

        jTextFieldColorMovehiculo.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldColorMovehiculo.setBorder(null);

        jTextFieldApellidoynombreComprobante6.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante6.setText("Color:");
        jTextFieldApellidoynombreComprobante6.setBorder(null);

        jTextFieldChasisMovehiculo.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldChasisMovehiculo.setBorder(null);

        jTextFieldApellidoynombreComprobante7.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante7.setText("Chasis:");
        jTextFieldApellidoynombreComprobante7.setBorder(null);

        jTextFieldTituloPorpietarioComprobante1.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldTituloPorpietarioComprobante1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextFieldTituloPorpietarioComprobante1.setText("LA PRESENTE CONSTANCIA SE EXTIENDE CON 60 DIAS DE VALIDEZ");
        jTextFieldTituloPorpietarioComprobante1.setBorder(null);

        jTextFieldMarcaMovehiculo.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldMarcaMovehiculo.setBorder(null);

        jTextFieldApellidoynombreComprobante8.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante8.setText("Marca:");
        jTextFieldApellidoynombreComprobante8.setBorder(null);

        jTextFieldModeloMovehiculo.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldModeloMovehiculo.setBorder(null);

        jTextFieldApellidoynombreComprobante9.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldApellidoynombreComprobante9.setText("Modelo:");
        jTextFieldApellidoynombreComprobante9.setBorder(null);

        jTextFieldTituloPorpietarioComprobante2.setFont(new java.awt.Font("Arial", 1, 13));
        jTextFieldTituloPorpietarioComprobante2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextFieldTituloPorpietarioComprobante2.setText("DATOS DEL MOTOVEHICULO");
        jTextFieldTituloPorpietarioComprobante2.setBorder(null);

        jTextFieldTituloPorpietarioComprobante3.setFont(new java.awt.Font("Arial", 0, 12));
        jTextFieldTituloPorpietarioComprobante3.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextFieldTituloPorpietarioComprobante3.setText("LECUNA MOTOS");
        jTextFieldTituloPorpietarioComprobante3.setBorder(null);

        javax.swing.GroupLayout jPanelImprimirComprobanteLayout = new javax.swing.GroupLayout(jPanelImprimirComprobante);
        jPanelImprimirComprobante.setLayout(jPanelImprimirComprobanteLayout);
        jPanelImprimirComprobanteLayout.setHorizontalGroup(
            jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                        .addComponent(jTextFieldTituloPorpietarioComprobante1, javax.swing.GroupLayout.DEFAULT_SIZE, 590, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirComprobanteLayout.createSequentialGroup()
                        .addComponent(jTextFieldTituloPorpietarioComprobante3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(103, 103, 103))
                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                        .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                .addGap(72, 72, 72)
                                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante4, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldTelefonoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante3, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldFechaPorpietarioComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante2, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldDNIComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldDomicilioComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldNombreComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                .addGap(70, 70, 70)
                                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante6, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldColorMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante7, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldChasisMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante5, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldMotorMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante9, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldModeloMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addComponent(jTextFieldApellidoynombreComprobante8, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jTextFieldMarcaMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addComponent(jTextFieldFechaComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelImprimirComprobanteLayout.createSequentialGroup()
                                        .addGap(69, 69, 69)
                                        .addComponent(jTextAreaTextoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 480, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jTextFieldTituloPorpietarioComprobante2, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirComprobanteLayout.createSequentialGroup()
                        .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextFieldTituloComprobante, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 590, Short.MAX_VALUE)
                            .addComponent(jTextFieldTituloPorpietarioComprobante, javax.swing.GroupLayout.DEFAULT_SIZE, 590, Short.MAX_VALUE))
                        .addContainerGap())))
        );
        jPanelImprimirComprobanteLayout.setVerticalGroup(
            jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirComprobanteLayout.createSequentialGroup()
                .addContainerGap(160, Short.MAX_VALUE)
                .addComponent(jTextFieldTituloComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jTextFieldFechaComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTextAreaTextoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTextFieldTituloPorpietarioComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldNombreComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldDomicilioComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldDNIComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldFechaPorpietarioComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldTelefonoComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jTextFieldTituloPorpietarioComprobante2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldMarcaMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldModeloMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldMotorMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldChasisMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldApellidoynombreComprobante6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldColorMovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(27, 27, 27)
                .addComponent(jTextFieldTituloPorpietarioComprobante1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(66, 66, 66)
                .addComponent(jTextFieldTituloPorpietarioComprobante3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jButtonImprimirComprobante.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonImprimirComprobante.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/confirmar.png"))); // NOI18N
        jButtonImprimirComprobante.setText("Imprimir Comprobante");
        jButtonImprimirComprobante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirComprobanteActionPerformed(evt);
            }
        });

        jButtonCancelarImprimirComprobante.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCancelarImprimirComprobante.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/cancelar.png"))); // NOI18N
        jButtonCancelarImprimirComprobante.setText("Cancelar");
        jButtonCancelarImprimirComprobante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarImprimirComprobanteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelImprimirLayout = new javax.swing.GroupLayout(jPanelImprimir);
        jPanelImprimir.setLayout(jPanelImprimirLayout);
        jPanelImprimirLayout.setHorizontalGroup(
            jPanelImprimirLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelImprimirLayout.createSequentialGroup()
                .addGap(160, 160, 160)
                .addComponent(jButtonImprimirComprobante)
                .addGap(74, 74, 74)
                .addComponent(jButtonCancelarImprimirComprobante))
            .addComponent(jPanelImprimirComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 610, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jPanelImprimirLayout.setVerticalGroup(
            jPanelImprimirLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelImprimirLayout.createSequentialGroup()
                .addComponent(jPanelImprimirComprobante, javax.swing.GroupLayout.DEFAULT_SIZE, 743, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(jPanelImprimirLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonImprimirComprobante)
                    .addComponent(jButtonCancelarImprimirComprobante))
                .addContainerGap())
        );

        jScrollPaneImprimirComprobante.setViewportView(jPanelImprimir);

        javax.swing.GroupLayout jDialogImprimirComprobanteLayout = new javax.swing.GroupLayout(jDialogImprimirComprobante.getContentPane());
        jDialogImprimirComprobante.getContentPane().setLayout(jDialogImprimirComprobanteLayout);
        jDialogImprimirComprobanteLayout.setHorizontalGroup(
            jDialogImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPaneImprimirComprobante, javax.swing.GroupLayout.PREFERRED_SIZE, 635, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        jDialogImprimirComprobanteLayout.setVerticalGroup(
            jDialogImprimirComprobanteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogImprimirComprobanteLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneImprimirComprobante, javax.swing.GroupLayout.DEFAULT_SIZE, 797, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("LECUNA Motos");
        setIconImage(getIconImage());

        jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane1StateChanged(evt);
            }
        });

        jButtonBuscarVenta.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButtonBuscarVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/buscar.png"))); // NOI18N
        jButtonBuscarVenta.setText("Buscar Venta");
        jButtonBuscarVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarVentaActionPerformed(evt);
            }
        });

        jButtonNuevaVenta.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonNuevaVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        jButtonNuevaVenta.setText("Nueva Venta");
        jButtonNuevaVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNuevaVentaActionPerformed(evt);
            }
        });

        jTableBuscarVenta.setModel(this.datosVenta);
        jTableBuscarVenta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableBuscarVentaMouseClicked(evt);
            }
        });
        jScrollPaneBuscarVenta.setViewportView(jTableBuscarVenta);

        jPanelBuscarVenta.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelClienteBuscarVenta.setText("Cliente:");

        jLabelFechaBuscarVenta.setText("Fecha:");

        jButtonBuscar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButtonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscar.setText("Buscar");
        jButtonBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaVenta.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jButtonDeshacerBusquedaVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaVenta.setText("Deshacer búsqueda");
        jButtonDeshacerBusquedaVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaVentaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarVentaLayout = new javax.swing.GroupLayout(jPanelBuscarVenta);
        jPanelBuscarVenta.setLayout(jPanelBuscarVentaLayout);
        jPanelBuscarVentaLayout.setHorizontalGroup(
            jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelFechaBuscarVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldFechaBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(80, 80, 80)
                .addComponent(jLabelClienteBuscarVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldClienteBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(102, 102, 102)
                .addComponent(jButtonBuscar)
                .addGap(88, 88, 88)
                .addComponent(jButtonDeshacerBusquedaVenta)
                .addContainerGap(126, Short.MAX_VALUE))
        );
        jPanelBuscarVentaLayout.setVerticalGroup(
            jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentaLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanelBuscarVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFechaBuscarVenta)
                    .addComponent(jTextFieldFechaBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelClienteBuscarVenta)
                    .addComponent(jTextFieldClienteBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonBuscar)
                    .addComponent(jButtonDeshacerBusquedaVenta))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelTotalVentas.setText("Cantidad: 100");

        javax.swing.GroupLayout jPanelBuscarVentasLayout = new javax.swing.GroupLayout(jPanelBuscarVentas);
        jPanelBuscarVentas.setLayout(jPanelBuscarVentasLayout);
        jPanelBuscarVentasLayout.setHorizontalGroup(
            jPanelBuscarVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPaneBuscarVenta, javax.swing.GroupLayout.DEFAULT_SIZE, 994, Short.MAX_VALUE)
                    .addComponent(jPanelBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelTotalVentas, javax.swing.GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        jPanelBuscarVentasLayout.setVerticalGroup(
            jPanelBuscarVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarVentasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPaneBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabelTotalVentas)
                .addContainerGap(18, Short.MAX_VALUE))
        );

        jLabelDatosVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosVenta.setText("Datos Venta");

        jLabelTipoVenta.setText("Tipo de venta:");

        jComboBoxTipoVenta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Motovehículo", "Services", "Repuestos" }));
        jComboBoxTipoVenta.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoVentaItemStateChanged(evt);
            }
        });

        jLabelTipoPagoVenta.setText("Tipo de pago:");

        jComboBoxTipoPagoVenta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Contado", "Cuotas" }));
        jComboBoxTipoPagoVenta.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxTipoPagoVentaItemStateChanged(evt);
            }
        });

        jLabelFechaVenta.setText("Fecha:");

        javax.swing.GroupLayout jPanelDatosDeVentaLayout = new javax.swing.GroupLayout(jPanelDatosDeVenta);
        jPanelDatosDeVenta.setLayout(jPanelDatosDeVentaLayout);
        jPanelDatosDeVentaLayout.setHorizontalGroup(
            jPanelDatosDeVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosDeVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosDeVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDatosVenta)
                    .addGroup(jPanelDatosDeVentaLayout.createSequentialGroup()
                        .addComponent(jLabelTipoVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBoxTipoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(49, 49, 49)
                        .addComponent(jLabelTipoPagoVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jComboBoxTipoPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(44, 44, 44)
                        .addComponent(jLabelFechaVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jDateChooserFechaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(269, Short.MAX_VALUE))
        );
        jPanelDatosDeVentaLayout.setVerticalGroup(
            jPanelDatosDeVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosDeVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosVenta)
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosDeVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jDateChooserFechaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelDatosDeVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelTipoVenta)
                        .addComponent(jComboBoxTipoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelTipoPagoVenta)
                        .addComponent(jComboBoxTipoPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelFechaVenta)))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jTextFieldPrecioMotoVenta.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldPrecioMotoVentaFocusLost(evt);
            }
        });

        jLabelPrecioMotoVenta.setText("Precio:");

        jLabelObservacionesMotoVenta.setText("Observaciones:");

        jLabelNroMotorMotoVenta.setText("N° Motor:");

        jLabelCilindradasMotoVenta.setText("Cilindradas:");

        jLabelDatosMotovehiculo.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosMotovehiculo.setText("Datos Motovehículo");

        jLabelMarcaMotoVenta.setText("Marca:");

        jLabelModeloMotoVenta.setText("Modelo:");

        jLabelColorMotoVenta.setText("Color:");

        jLabelNroChasisMotoVenta.setText("N° Chasi:");

        jLabelKmMotoVenta.setText("Km:");

        jLabelModeloAnoMotoVenta.setText("Modelo Año:");

        javax.swing.GroupLayout jPanelDatosMotovehiculoLayout = new javax.swing.GroupLayout(jPanelDatosMotovehiculo);
        jPanelDatosMotovehiculo.setLayout(jPanelDatosMotovehiculoLayout);
        jPanelDatosMotovehiculoLayout.setHorizontalGroup(
            jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelObservacionesMotoVenta)
                    .addComponent(jLabelNroMotorMotoVenta)
                    .addComponent(jLabelCilindradasMotoVenta))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                                .addComponent(jTextFieldCilindradasMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(32, 32, 32)
                                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelColorMotoVenta)
                                    .addComponent(jLabelMarcaMotoVenta)))
                            .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                                .addComponent(jTextFieldNroMotorMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabelNroChasisMotoVenta)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldColorMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldMarcaMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldNroChasisMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jTextFieldObservacionesMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                        .addComponent(jLabelModeloMotoVenta)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldModeloMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelPrecioMotoVenta)
                            .addComponent(jLabelModeloAnoMotoVenta)
                            .addComponent(jLabelKmMotoVenta))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldModeloAnoMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldKmMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldPrecioMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(150, Short.MAX_VALUE))
            .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabelDatosMotovehiculo)
                    .addGap(513, 513, 513)))
        );
        jPanelDatosMotovehiculoLayout.setVerticalGroup(
            jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldModeloMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelModeloMotoVenta)
                            .addComponent(jTextFieldMarcaMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelMarcaMotoVenta))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelKmMotoVenta)
                            .addComponent(jTextFieldKmMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelColorMotoVenta)
                            .addComponent(jTextFieldColorMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelCilindradasMotoVenta)
                        .addComponent(jTextFieldCilindradasMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNroMotorMotoVenta)
                    .addComponent(jTextFieldNroMotorMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelNroChasisMotoVenta)
                    .addComponent(jTextFieldModeloAnoMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelModeloAnoMotoVenta)
                    .addComponent(jTextFieldNroChasisMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelObservacionesMotoVenta)
                    .addComponent(jTextFieldPrecioMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelPrecioMotoVenta)
                    .addComponent(jTextFieldObservacionesMotoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanelDatosMotovehiculoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosMotovehiculoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jLabelDatosMotovehiculo)
                    .addContainerGap(92, Short.MAX_VALUE)))
        );

        jLabelDatosClienteVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosClienteVenta.setText("Datos Cliente");

        jLabelAyNClienteVenta.setText("Apellido y Nombres:");

        jLabelDireccionClienteVenta.setText("Dirección:");

        jLabelDirActualClienteVenta.setText("Dirección Actual:");

        jLabelConyugueClienteVenta.setText("Conyuge:");

        jTextFieldDNIClienteVenta.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldDNIClienteVentaFocusLost(evt);
            }
        });

        jLabelDNIClienteVenta.setText("D.N.I:");

        jLabelFechaNacClienteVenta.setText("Fecha de Nacimiento:");

        jLabelTelefonoClienteVenta.setText("Teléfono:");

        jLabelTelefono2ClienteVenta.setText("Teléfono Alternativo:");

        jLabelObservacionesClienteVenta.setText("Observaciones:");

        jTextFieldEmailClienteVenta.setMaximumSize(new java.awt.Dimension(6, 20));

        jLabelEmailClienteVenta.setText("E-Mail:");

        jLabelLocalidadClienteVenta.setText("Localidad:");

        jLabelTrabajoClienteVenta.setText("Lugar de Trabajo:");

        javax.swing.GroupLayout jPanelDatosClienteLayout = new javax.swing.GroupLayout(jPanelDatosCliente);
        jPanelDatosCliente.setLayout(jPanelDatosClienteLayout);
        jPanelDatosClienteLayout.setHorizontalGroup(
            jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                .addGap(494, 494, 494)
                .addComponent(jDateChooserFechaNacClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(339, Short.MAX_VALUE))
            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelConyugueClienteVenta)
                                .addComponent(jLabelDireccionClienteVenta)
                                .addComponent(jLabelAyNClienteVenta)
                                .addComponent(jLabelDirActualClienteVenta))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jTextFieldConyugeClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldNombreClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirActualClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelFechaNacClienteVenta)
                                .addComponent(jLabelTelefonoClienteVenta)
                                .addComponent(jLabelTelefono2ClienteVenta)
                                .addComponent(jLabelObservacionesClienteVenta)))
                        .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                            .addComponent(jLabelDatosClienteVenta)
                            .addGap(76, 76, 76)
                            .addComponent(jLabelDNIClienteVenta)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTextFieldDNIClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(15, 15, 15)
                    .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTelefonoClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldTelefono2ClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelTrabajoClienteVenta, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelEmailClienteVenta, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelLocalidadClienteVenta, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTrabajoClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldLocalidadClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldEmailClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jTextFieldObservacionesClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 495, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(45, Short.MAX_VALUE)))
        );
        jPanelDatosClienteLayout.setVerticalGroup(
            jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addComponent(jDateChooserFechaNacClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(97, Short.MAX_VALUE))
            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                    .addGap(7, 7, 7)
                    .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelDatosClienteVenta)
                        .addComponent(jTextFieldDNIClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelDNIClienteVenta))
                    .addGap(14, 14, 14)
                    .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelAyNClienteVenta)
                                .addComponent(jTextFieldNombreClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelFechaNacClienteVenta))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDireccionClienteVenta)
                                .addComponent(jTextFieldDirClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefonoClienteVenta)
                                .addComponent(jTextFieldTelefonoClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDirActualClienteVenta)
                                .addComponent(jTextFieldDirActualClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefono2ClienteVenta)
                                .addComponent(jTextFieldTelefono2ClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(jPanelDatosClienteLayout.createSequentialGroup()
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelTrabajoClienteVenta)
                                .addComponent(jTextFieldTrabajoClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldLocalidadClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelLocalidadClienteVenta))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelEmailClienteVenta)
                                .addComponent(jTextFieldEmailClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelObservacionesClienteVenta)
                            .addComponent(jTextFieldObservacionesClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelConyugueClienteVenta)
                            .addComponent(jTextFieldConyugeClienteVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(23, Short.MAX_VALUE)))
        );

        jLabelDatosGaranteVenta1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosGaranteVenta1.setText("Datos Garante 1");

        jLabelAyNGaranteVenta1.setText("Apellido y Nombres:");

        jLabelDireccionGaranteVenta1.setText("Dirección:");

        jLabelDirActualGaranteVenta1.setText("Dirección Actual:");

        jLabelConyugueGaranteVenta1.setText("Conyuge:");

        jTextFieldDNIGaranteVenta1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldDNIGaranteVenta1FocusLost(evt);
            }
        });

        jLabelDNIGaranteVenta1.setText("D.N.I:");

        jLabelFechaNacGaranteVenta1.setText("Fecha de Nacimiento:");

        jLabelTelefonoGaranteVenta1.setText("Teléfono:");

        jLabelTelefono2GaranteVenta1.setText("Teléfono Alternativo:");

        jLabelObservacionesGaranteVenta1.setText("Observaciones:");

        jTextFieldEmailGaranteVenta1.setMaximumSize(new java.awt.Dimension(6, 20));

        jLabelEmailGaranteVenta1.setText("E-Mail:");

        jLabelLocalidadGaranteVenta1.setText("Localidad:");

        jLabelTrabajoGaranteVenta1.setText("Lugar de Trabajo:");

        javax.swing.GroupLayout jPanelDatosGarante1Layout = new javax.swing.GroupLayout(jPanelDatosGarante1);
        jPanelDatosGarante1.setLayout(jPanelDatosGarante1Layout);
        jPanelDatosGarante1Layout.setHorizontalGroup(
            jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                .addGap(494, 494, 494)
                .addComponent(jDateChooserFechaNacGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(334, Short.MAX_VALUE))
            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelConyugueGaranteVenta1)
                                .addComponent(jLabelDireccionGaranteVenta1)
                                .addComponent(jLabelAyNGaranteVenta1)
                                .addComponent(jLabelDirActualGaranteVenta1))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jTextFieldConyugeGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldNombreGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirActualGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelFechaNacGaranteVenta1)
                                .addComponent(jLabelTelefonoGaranteVenta1)
                                .addComponent(jLabelTelefono2GaranteVenta1)
                                .addComponent(jLabelObservacionesGaranteVenta1)))
                        .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                            .addComponent(jLabelDatosGaranteVenta1)
                            .addGap(76, 76, 76)
                            .addComponent(jLabelDNIGaranteVenta1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTextFieldDNIGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(15, 15, 15)
                    .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTelefonoGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldTelefono2GaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelTrabajoGaranteVenta1, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelEmailGaranteVenta1, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelLocalidadGaranteVenta1, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTrabajoGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldLocalidadGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldEmailGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jTextFieldObservacionesGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, 495, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(38, Short.MAX_VALUE)))
        );
        jPanelDatosGarante1Layout.setVerticalGroup(
            jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addComponent(jDateChooserFechaNacGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(116, Short.MAX_VALUE))
            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                    .addGap(7, 7, 7)
                    .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelDatosGaranteVenta1)
                        .addComponent(jTextFieldDNIGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelDNIGaranteVenta1))
                    .addGap(14, 14, 14)
                    .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelAyNGaranteVenta1)
                                .addComponent(jTextFieldNombreGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelFechaNacGaranteVenta1))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDireccionGaranteVenta1)
                                .addComponent(jTextFieldDirGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefonoGaranteVenta1)
                                .addComponent(jTextFieldTelefonoGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDirActualGaranteVenta1)
                                .addComponent(jTextFieldDirActualGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefono2GaranteVenta1)
                                .addComponent(jTextFieldTelefono2GaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(jPanelDatosGarante1Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelTrabajoGaranteVenta1)
                                .addComponent(jTextFieldTrabajoGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldLocalidadGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelLocalidadGaranteVenta1))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelEmailGaranteVenta1)
                                .addComponent(jTextFieldEmailGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelObservacionesGaranteVenta1)
                            .addComponent(jTextFieldObservacionesGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanelDatosGarante1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelConyugueGaranteVenta1)
                            .addComponent(jTextFieldConyugeGaranteVenta1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(40, Short.MAX_VALUE)))
        );

        jTabbedPaneDatosGarantes.addTab("Garante 1", jPanelDatosGarante1);

        jLabelDatosGaranteVenta2.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosGaranteVenta2.setText("Datos Garante 2");

        jLabelAyNGaranteVenta2.setText("Apellido y Nombres:");

        jLabelDireccionGaranteVenta2.setText("Dirección:");

        jLabelDirActualGaranteVenta2.setText("Dirección Actual:");

        jLabelConyugueGaranteVenta2.setText("Conyuge:");

        jTextFieldDNIGaranteVenta2.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldDNIGaranteVenta2FocusLost(evt);
            }
        });

        jLabelDNIGaranteVenta2.setText("D.N.I:");

        jLabelFechaNacGaranteVenta2.setText("Fecha de Nacimiento:");

        jLabelTelefonoGaranteVenta2.setText("Teléfono:");

        jLabelTelefono2GaranteVenta2.setText("Teléfono Alternativo:");

        jLabelObservacionesGaranteVenta2.setText("Observaciones:");

        jTextFieldEmailGaranteVenta2.setMaximumSize(new java.awt.Dimension(6, 20));

        jLabelEmailGaranteVenta2.setText("E-Mail:");

        jLabelLocalidadGaranteVenta2.setText("Localidad:");

        jLabelTrabajoGaranteVenta2.setText("Lugar de Trabajo:");

        javax.swing.GroupLayout jPanelDatosGarante3Layout = new javax.swing.GroupLayout(jPanelDatosGarante3);
        jPanelDatosGarante3.setLayout(jPanelDatosGarante3Layout);
        jPanelDatosGarante3Layout.setHorizontalGroup(
            jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                .addGap(497, 497, 497)
                .addComponent(jDateChooserFechaNacGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(331, Short.MAX_VALUE))
            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                    .addGap(18, 18, 18)
                    .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelConyugueGaranteVenta2)
                                .addComponent(jLabelDireccionGaranteVenta2)
                                .addComponent(jLabelAyNGaranteVenta2)
                                .addComponent(jLabelDirActualGaranteVenta2))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jTextFieldConyugeGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldNombreGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirActualGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldDirGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(18, 18, 18)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelFechaNacGaranteVenta2)
                                .addComponent(jLabelTelefonoGaranteVenta2)
                                .addComponent(jLabelTelefono2GaranteVenta2)
                                .addComponent(jLabelObservacionesGaranteVenta2)))
                        .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                            .addComponent(jLabelDatosGaranteVenta2)
                            .addGap(76, 76, 76)
                            .addComponent(jLabelDNIGaranteVenta2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jTextFieldDNIGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(15, 15, 15)
                    .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTelefonoGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldTelefono2GaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelTrabajoGaranteVenta2, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelEmailGaranteVenta2, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabelLocalidadGaranteVenta2, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldTrabajoGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldLocalidadGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jTextFieldEmailGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(jTextFieldObservacionesGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, 495, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(38, Short.MAX_VALUE)))
        );
        jPanelDatosGarante3Layout.setVerticalGroup(
            jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addComponent(jDateChooserFechaNacGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(114, Short.MAX_VALUE))
            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                    .addGap(7, 7, 7)
                    .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelDatosGaranteVenta2)
                        .addComponent(jTextFieldDNIGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelDNIGaranteVenta2))
                    .addGap(14, 14, 14)
                    .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelAyNGaranteVenta2)
                                .addComponent(jTextFieldNombreGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelFechaNacGaranteVenta2))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDireccionGaranteVenta2)
                                .addComponent(jTextFieldDirGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefonoGaranteVenta2)
                                .addComponent(jTextFieldTelefonoGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelDirActualGaranteVenta2)
                                .addComponent(jTextFieldDirActualGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelTelefono2GaranteVenta2)
                                .addComponent(jTextFieldTelefono2GaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(jPanelDatosGarante3Layout.createSequentialGroup()
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelTrabajoGaranteVenta2)
                                .addComponent(jTextFieldTrabajoGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jTextFieldLocalidadGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabelLocalidadGaranteVenta2))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabelEmailGaranteVenta2)
                                .addComponent(jTextFieldEmailGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelObservacionesGaranteVenta2)
                            .addComponent(jTextFieldObservacionesGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(jPanelDatosGarante3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelConyugueGaranteVenta2)
                            .addComponent(jTextFieldConyugeGaranteVenta2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(40, Short.MAX_VALUE)))
        );

        jTabbedPaneDatosGarantes.addTab("Garante 2", jPanelDatosGarante3);

        jLabelCuotasVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelCuotasVenta.setText("Cuotas");

        jTableCuotasVenta.setModel(this.datosCuotas);
        jTableCuotasVenta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableCuotasVentaMouseClicked(evt);
            }
        });
        jScrollPaneCuotasVenta.setViewportView(jTableCuotasVenta);

        jLabelPlanesVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelPlanesVenta.setText("Planes");

        jTablePlanesVenta.setModel(datosPlanes);
        jTablePlanesVenta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTablePlanesVentaMouseClicked(evt);
            }
        });
        jScrollPanePlanesVenta.setViewportView(jTablePlanesVenta);

        jButtonCambiarPlanVenta.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonCambiarPlanVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/modificar.png"))); // NOI18N
        jButtonCambiarPlanVenta.setText("Cambiar plan");
        jButtonCambiarPlanVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCambiarPlanVentaActionPerformed(evt);
            }
        });

        jButtonImprimirCuotas.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonImprimirCuotas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonImprimirCuotas.setText("Imprimir cuotas");
        jButtonImprimirCuotas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirCuotasActionPerformed(evt);
            }
        });

        jButtonEliminarPlan.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarPlan.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarPlan.setText("Eliminar plan");
        jButtonEliminarPlan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarPlanActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelCuotasVentaLayout = new javax.swing.GroupLayout(jPanelCuotasVenta);
        jPanelCuotasVenta.setLayout(jPanelCuotasVentaLayout);
        jPanelCuotasVentaLayout.setHorizontalGroup(
            jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCuotasVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPlanesVenta)
                    .addGroup(jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelCuotasVentaLayout.createSequentialGroup()
                            .addComponent(jLabelCuotasVenta)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonImprimirCuotas))
                        .addGroup(jPanelCuotasVentaLayout.createSequentialGroup()
                            .addComponent(jScrollPanePlanesVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 732, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                            .addGroup(jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jButtonEliminarPlan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonCambiarPlanVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addComponent(jScrollPaneCuotasVenta, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 858, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(132, Short.MAX_VALUE))
        );
        jPanelCuotasVentaLayout.setVerticalGroup(
            jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCuotasVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelPlanesVenta)
                .addGap(18, 18, 18)
                .addGroup(jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPanePlanesVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelCuotasVentaLayout.createSequentialGroup()
                        .addComponent(jButtonCambiarPlanVenta)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonEliminarPlan)))
                .addGap(18, 18, 18)
                .addGroup(jPanelCuotasVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCuotasVenta)
                    .addComponent(jButtonImprimirCuotas))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPaneCuotasVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelImporteServiceVenta.setText("Importe:");

        jTextFieldImporteServiceVenta.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldImporteServiceVentaFocusLost(evt);
            }
        });

        jLabelDescripcionServiceVenta.setText("Descripción:");

        jLabelDatosServiceVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosServiceVenta.setText("Datos Service");

        javax.swing.GroupLayout jPanelDatosServiceLayout = new javax.swing.GroupLayout(jPanelDatosService);
        jPanelDatosService.setLayout(jPanelDatosServiceLayout);
        jPanelDatosServiceLayout.setHorizontalGroup(
            jPanelDatosServiceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosServiceLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosServiceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosServiceLayout.createSequentialGroup()
                        .addComponent(jLabelImporteServiceVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldImporteServiceVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabelDescripcionServiceVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldDescripcionServiceVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 471, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabelDatosServiceVenta))
                .addContainerGap(247, Short.MAX_VALUE))
        );
        jPanelDatosServiceLayout.setVerticalGroup(
            jPanelDatosServiceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDatosServiceLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosServiceVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addGroup(jPanelDatosServiceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelImporteServiceVenta)
                    .addComponent(jTextFieldImporteServiceVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDescripcionServiceVenta)
                    .addComponent(jTextFieldDescripcionServiceVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jLabelImporteRespuestoVenta.setText("Importe:");

        jTextFieldImporteRespuestoVenta.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jTextFieldImporteRespuestoVentaFocusLost(evt);
            }
        });

        jLabelDescripcionRespuestoVenta.setText("Descripción:");

        jLabelDatosRespuestoVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosRespuestoVenta.setText("Datos Respuesto");

        javax.swing.GroupLayout jPanelDatosRepuestoLayout = new javax.swing.GroupLayout(jPanelDatosRepuesto);
        jPanelDatosRepuesto.setLayout(jPanelDatosRepuestoLayout);
        jPanelDatosRepuestoLayout.setHorizontalGroup(
            jPanelDatosRepuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosRepuestoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosRepuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosRepuestoLayout.createSequentialGroup()
                        .addComponent(jLabelImporteRespuestoVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldImporteRespuestoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabelDescripcionRespuestoVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldDescripcionRespuestoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 471, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabelDatosRespuestoVenta))
                .addContainerGap(247, Short.MAX_VALUE))
        );
        jPanelDatosRepuestoLayout.setVerticalGroup(
            jPanelDatosRepuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelDatosRepuestoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosRespuestoVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addGroup(jPanelDatosRepuestoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelImporteRespuestoVenta)
                    .addComponent(jTextFieldImporteRespuestoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelDescripcionRespuestoVenta)
                    .addComponent(jTextFieldDescripcionRespuestoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jLabelEntregaPagoVenta.setText("Entrega:");

        jLabelDatosPagoVenta.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelDatosPagoVenta.setText("Datos Pago");

        jButtonEntregaImprimirRecibo.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonEntregaImprimirRecibo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonEntregaImprimirRecibo.setText("Imprimir Recibo");
        jButtonEntregaImprimirRecibo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEntregaImprimirReciboActionPerformed(evt);
            }
        });

        jButtonImprimirComprobanteVenta.setFont(new java.awt.Font("Tahoma", 1, 12));
        jButtonImprimirComprobanteVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        jButtonImprimirComprobanteVenta.setText("Imprimir Comprobante de Venta");
        jButtonImprimirComprobanteVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirComprobanteVentaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelDatosPagoLayout = new javax.swing.GroupLayout(jPanelDatosPago);
        jPanelDatosPago.setLayout(jPanelDatosPagoLayout);
        jPanelDatosPagoLayout.setHorizontalGroup(
            jPanelDatosPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDatosPagoVenta)
                    .addGroup(jPanelDatosPagoLayout.createSequentialGroup()
                        .addComponent(jLabelEntregaPagoVenta)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldEntregaPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonEntregaImprimirRecibo)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonImprimirComprobanteVenta)))
                .addContainerGap(661, Short.MAX_VALUE))
        );
        jPanelDatosPagoLayout.setVerticalGroup(
            jPanelDatosPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPagoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelDatosPagoVenta)
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosPagoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEntregaPagoVenta)
                    .addComponent(jTextFieldEntregaPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonEntregaImprimirRecibo)
                    .addComponent(jButtonImprimirComprobanteVenta))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButtonGuardarCambiosVenta.setFont(new java.awt.Font("Tahoma", 1, 18));
        jButtonGuardarCambiosVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/guardar.png"))); // NOI18N
        jButtonGuardarCambiosVenta.setText("Guardar Cambios");
        jButtonGuardarCambiosVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarCambiosVentaActionPerformed(evt);
            }
        });

        jButtonGuardarNuevaVenta.setFont(new java.awt.Font("Tahoma", 1, 18));
        jButtonGuardarNuevaVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/guardar.png"))); // NOI18N
        jButtonGuardarNuevaVenta.setText("Guardar Nueva Venta");
        jButtonGuardarNuevaVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNuevaVentaActionPerformed(evt);
            }
        });

        jButtonCancelarVenta.setFont(new java.awt.Font("Tahoma", 1, 18));
        jButtonCancelarVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/cancelar.png"))); // NOI18N
        jButtonCancelarVenta.setText("Cancelar");
        jButtonCancelarVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarVentaActionPerformed(evt);
            }
        });

        jButtonImprimirVenta.setFont(new java.awt.Font("Tahoma", 1, 18));
        jButtonImprimirVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/documento.png"))); // NOI18N
        jButtonImprimirVenta.setText("Imprimir Venta");
        jButtonImprimirVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonImprimirVentaActionPerformed(evt);
            }
        });

        jLabelPlanPagoVenta.setText("Plan:");

        jTextFieldPlanPagoVenta.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));

        jLabelCuotasPagoVenta.setText("Cuotas de:");

        jLabelFechaPrimerVencimiento.setText("Fecha primer vencimiento:");

        javax.swing.GroupLayout jPanelDatosPagoCuotasLayout = new javax.swing.GroupLayout(jPanelDatosPagoCuotas);
        jPanelDatosPagoCuotas.setLayout(jPanelDatosPagoCuotasLayout);
        jPanelDatosPagoCuotasLayout.setHorizontalGroup(
            jPanelDatosPagoCuotasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPagoCuotasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelPlanPagoVenta)
                .addGap(37, 37, 37)
                .addComponent(jTextFieldPlanPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabelCuotasPagoVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldCuotasPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabelFechaPrimerVencimiento)
                .addGap(18, 18, 18)
                .addComponent(jDateChooserFechaPrimerVencimiento, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(214, Short.MAX_VALUE))
        );
        jPanelDatosPagoCuotasLayout.setVerticalGroup(
            jPanelDatosPagoCuotasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosPagoCuotasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosPagoCuotasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jDateChooserFechaPrimerVencimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanelDatosPagoCuotasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTextFieldCuotasPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelCuotasPagoVenta)
                        .addComponent(jLabelPlanPagoVenta)
                        .addComponent(jTextFieldPlanPagoVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabelFechaPrimerVencimiento)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButtonEliminarVenta.setFont(new java.awt.Font("Tahoma", 1, 18));
        jButtonEliminarVenta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/eliminar.png"))); // NOI18N
        jButtonEliminarVenta.setText("Eliminar Venta");
        jButtonEliminarVenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarVentaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelDatosVentaLayout = new javax.swing.GroupLayout(jPanelDatosVenta);
        jPanelDatosVenta.setLayout(jPanelDatosVentaLayout);
        jPanelDatosVentaLayout.setHorizontalGroup(
            jPanelDatosVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                .addGroup(jPanelDatosVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelDatosVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelDatosCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelDatosDeVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTabbedPaneDatosGarantes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelDatosMotovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelDatosService, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelDatosRepuesto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanelDatosPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                        .addGap(34, 34, 34)
                        .addComponent(jButtonCancelarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(28, 28, 28)
                        .addComponent(jButtonImprimirVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonGuardarNuevaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonGuardarCambiosVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonEliminarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelDatosPagoCuotas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelCuotasVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelDatosVentaLayout.setVerticalGroup(
            jPanelDatosVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelDatosDeVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelDatosCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTabbedPaneDatosGarantes, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelDatosMotovehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosService, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosRepuesto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelDatosPago, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosPagoCuotas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelCuotasVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31)
                .addGroup(jPanelDatosVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancelarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonImprimirVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonGuardarNuevaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonGuardarCambiosVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonEliminarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(27, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelVentasLayout = new javax.swing.GroupLayout(jPanelVentas);
        jPanelVentas.setLayout(jPanelVentasLayout);
        jPanelVentasLayout.setHorizontalGroup(
            jPanelVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVentasLayout.createSequentialGroup()
                .addGroup(jPanelVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelVentasLayout.createSequentialGroup()
                        .addGap(196, 196, 196)
                        .addComponent(jButtonNuevaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(145, 145, 145)
                        .addComponent(jButtonBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelVentasLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelDatosVenta, 0, 1196, Short.MAX_VALUE)
                            .addComponent(jPanelBuscarVentas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        jPanelVentasLayout.setVerticalGroup(
            jPanelVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVentasLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(jPanelVentasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNuevaVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonBuscarVenta, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jPanelBuscarVentas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanelDatosVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jScrollPaneVentas.setViewportView(jPanelVentas);

        jTabbedPane1.addTab("Ventas", jScrollPaneVentas);

        jTableAgenda.setModel(this.datosAgenda);
        jTableAgenda.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jTableAgenda.getTableHeader().setReorderingAllowed(false);
        jScrollPaneAgendaTabla.setViewportView(jTableAgenda);

        AgendaAgregarContacto.setFont(new java.awt.Font("Tahoma", 1, 12));
        AgendaAgregarContacto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/agregar.png"))); // NOI18N
        AgendaAgregarContacto.setText("Agregar contacto");
        AgendaAgregarContacto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AgendaAgregarContactoActionPerformed(evt);
            }
        });

        AgendaEliminarContacto.setFont(new java.awt.Font("Tahoma", 1, 12));
        AgendaEliminarContacto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/medianas/eliminar.png"))); // NOI18N
        AgendaEliminarContacto.setText("Eliminar contacto");
        AgendaEliminarContacto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AgendaEliminarContactoActionPerformed(evt);
            }
        });

        jPanelBuscarAgenda.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelEmailAgenda.setText("E-mail:");

        jTextFieldAgendaBuscarEmail.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldAgendaBuscarEmailKeyReleased(evt);
            }
        });

        jTextFieldAgendaBuscarTelefono.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldAgendaBuscarTelefonoKeyReleased(evt);
            }
        });

        jLabelTelefonoAgenda.setText("Teléfono:");

        jLabelDireccionAgenda.setText("Dirección:");

        jTextFieldAgendaBuscarDireccion.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldAgendaBuscarDireccionKeyReleased(evt);
            }
        });

        jLabelApellidoAgenda.setText("Apellido:");

        jLabelNombreAgenda.setText("Nombre:");

        jLabelObservacionesAgenda.setText("Observaciones:");

        jTextFieldAgendaBuscarObservaciones.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jTextFieldAgendaBuscarObservacionesKeyReleased(evt);
            }
        });

        jButtonBuscarAgenda.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonBuscarAgenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarAgenda.setText("Buscar");
        jButtonBuscarAgenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarAgendaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaAgenda.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonDeshacerBusquedaAgenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaAgenda.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaAgenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaAgendaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarAgendaLayout = new javax.swing.GroupLayout(jPanelBuscarAgenda);
        jPanelBuscarAgenda.setLayout(jPanelBuscarAgendaLayout);
        jPanelBuscarAgendaLayout.setHorizontalGroup(
            jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                        .addGap(9, 9, 9)
                        .addComponent(jButtonBuscarAgenda, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelEmailAgenda)
                            .addComponent(jLabelTelefonoAgenda)
                            .addComponent(jLabelApellidoAgenda)
                            .addComponent(jLabelDireccionAgenda)
                            .addComponent(jLabelNombreAgenda)
                            .addComponent(jLabelObservacionesAgenda))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jTextFieldAgendaBuscarObservaciones, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldAgendaBuscarEmail, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldAgendaBuscarTelefono, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldAgendaBuscarDireccion, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldAgendaBuscarApellido, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldAgendaBuscarNombre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jButtonDeshacerBusquedaAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, 220, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelBuscarAgendaLayout.setVerticalGroup(
            jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarAgendaLayout.createSequentialGroup()
                .addComponent(jButtonBuscarAgenda)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE)
                .addComponent(jButtonDeshacerBusquedaAgenda)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNombreAgenda)
                    .addComponent(jTextFieldAgendaBuscarNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelApellidoAgenda)
                    .addComponent(jTextFieldAgendaBuscarApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelDireccionAgenda)
                    .addComponent(jTextFieldAgendaBuscarDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTelefonoAgenda)
                    .addComponent(jTextFieldAgendaBuscarTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailAgenda)
                    .addComponent(jTextFieldAgendaBuscarEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelBuscarAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldAgendaBuscarObservaciones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelObservacionesAgenda))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanelAgendaLayout = new javax.swing.GroupLayout(jPanelAgenda);
        jPanelAgenda.setLayout(jPanelAgendaLayout);
        jPanelAgendaLayout.setHorizontalGroup(
            jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPaneAgendaTabla, javax.swing.GroupLayout.DEFAULT_SIZE, 947, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanelBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(AgendaAgregarContacto, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)
                    .addComponent(AgendaEliminarContacto, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelAgendaLayout.setVerticalGroup(
            jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAgendaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelAgendaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelAgendaLayout.createSequentialGroup()
                        .addComponent(jScrollPaneAgendaTabla, javax.swing.GroupLayout.DEFAULT_SIZE, 630, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(jPanelAgendaLayout.createSequentialGroup()
                        .addComponent(AgendaAgregarContacto, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(AgendaEliminarContacto, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelBuscarAgenda, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(183, 183, 183))))
        );

        jTabbedPane1.addTab("Agenda", jPanelAgenda);

        jComboBoxPlanillas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Planilla Completa", "Gestoría", "Gastos", "Varios", "Moto", "Repuestos", "Services" }));
        jComboBoxPlanillas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                jComboBoxPlanillasItemStateChanged(evt);
            }
        });

        jButtonAgregarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonAgregarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/agregar.png"))); // NOI18N
        jButtonAgregarMovimiento.setText("Agregar Movimiento");
        jButtonAgregarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAgregarMovimientoActionPerformed(evt);
            }
        });

        jButtonEliminarMovimiento.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonEliminarMovimiento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/eliminar.png"))); // NOI18N
        jButtonEliminarMovimiento.setText("Eliminar Movimiento");
        jButtonEliminarMovimiento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEliminarMovimientoActionPerformed(evt);
            }
        });

        jPanelMoto.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Motovehículo", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jTableMotoEntrega.setModel(this.datosMotoEntrega);
        jScrollPane14.setViewportView(jTableMotoEntrega);

        jTableMotoCuota.setModel(this.datosMotoCuota);
        jScrollPane15.setViewportView(jTableMotoCuota);

        jLabelTotalMotoEntregaTabla.setText("jLabel5");
        jLabelTotalMotoEntregaTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalMotoEntregaTablaPropertyChange(evt);
            }
        });

        jLabelTextoTotalMotoEntregaTabla.setText("Total:");

        jLabelTotalMotoCuotaTabla.setText("jLabel7");
        jLabelTotalMotoCuotaTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalMotoCuotaTablaPropertyChange(evt);
            }
        });

        jLabelTextoTotalMotoCuotaTabla.setText("Total:");

        jLabelPanelMotoEntrega.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabelPanelMotoEntrega.setText("Entregas");

        jLabelPanelMotoCuota.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabelPanelMotoCuota.setText("Cuotas");

        javax.swing.GroupLayout jPanelMotoLayout = new javax.swing.GroupLayout(jPanelMoto);
        jPanelMoto.setLayout(jPanelMotoLayout);
        jPanelMotoLayout.setHorizontalGroup(
            jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMotoLayout.createSequentialGroup()
                .addGroup(jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelMotoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelMotoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE))
                    .addGroup(jPanelMotoLayout.createSequentialGroup()
                        .addGap(136, 136, 136)
                        .addComponent(jLabelPanelMotoEntrega)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 155, Short.MAX_VALUE))
                    .addGroup(jPanelMotoLayout.createSequentialGroup()
                        .addContainerGap(273, Short.MAX_VALUE)
                        .addComponent(jLabelTextoTotalMotoCuotaTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalMotoCuotaTabla))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelMotoLayout.createSequentialGroup()
                        .addGap(143, 143, 143)
                        .addComponent(jLabelPanelMotoCuota))
                    .addGroup(jPanelMotoLayout.createSequentialGroup()
                        .addContainerGap(273, Short.MAX_VALUE)
                        .addComponent(jLabelTextoTotalMotoEntregaTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalMotoEntregaTabla)))
                .addContainerGap())
        );
        jPanelMotoLayout.setVerticalGroup(
            jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMotoLayout.createSequentialGroup()
                .addComponent(jLabelPanelMotoEntrega)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPanelMotoCuota, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMotoLayout.createSequentialGroup()
                        .addGroup(jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelTotalMotoEntregaTabla)
                            .addComponent(jLabelTextoTotalMotoEntregaTabla))
                        .addGap(22, 22, 22)))
                .addGap(7, 7, 7)
                .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelMotoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalMotoCuotaTabla)
                    .addComponent(jLabelTextoTotalMotoCuotaTabla))
                .addContainerGap())
        );

        jPanelServices.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Services", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jLabelTextoTotalServicesTabla.setText("Total:");

        jLabelTotalServicesTabla.setText("jLabel6");
        jLabelTotalServicesTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalServicesTablaPropertyChange(evt);
            }
        });

        jTableServices.setModel(this.datosServices);
        jScrollPane16.setViewportView(jTableServices);

        javax.swing.GroupLayout jPanelServicesLayout = new javax.swing.GroupLayout(jPanelServices);
        jPanelServices.setLayout(jPanelServicesLayout);
        jPanelServicesLayout.setHorizontalGroup(
            jPanelServicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelServicesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelServicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelServicesLayout.createSequentialGroup()
                        .addComponent(jLabelTextoTotalServicesTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalServicesTabla)))
                .addContainerGap())
        );
        jPanelServicesLayout.setVerticalGroup(
            jPanelServicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelServicesLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelServicesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalServicesTabla)
                    .addComponent(jLabelTextoTotalServicesTabla))
                .addGap(20, 20, 20))
        );

        jPanelRepuestos.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Repuestos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jTableRepuestos.setModel(this.datosRepuestos);
        jScrollPane17.setViewportView(jTableRepuestos);

        jLabelTextoTotalRepuestosTabla.setText("Total:");

        jLabelTotalRepuestosTabla.setText("jLabel5");

        javax.swing.GroupLayout jPanelRepuestosLayout = new javax.swing.GroupLayout(jPanelRepuestos);
        jPanelRepuestos.setLayout(jPanelRepuestosLayout);
        jPanelRepuestosLayout.setHorizontalGroup(
            jPanelRepuestosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelRepuestosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelRepuestosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE)
                    .addGroup(jPanelRepuestosLayout.createSequentialGroup()
                        .addComponent(jLabelTextoTotalRepuestosTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalRepuestosTabla)))
                .addContainerGap())
        );
        jPanelRepuestosLayout.setVerticalGroup(
            jPanelRepuestosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelRepuestosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane17, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelRepuestosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalRepuestosTabla)
                    .addComponent(jLabelTextoTotalRepuestosTabla))
                .addContainerGap())
        );

        jPanelGastos.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Gastos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jTableGastos.setModel(this.datosGastos);
        jScrollPane18.setViewportView(jTableGastos);

        jLabelTextoTotalGastosTabla.setText("Total:");

        jLabelTotalGastosTabla.setText("jLabel4");
        jLabelTotalGastosTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalGastosTablaPropertyChange(evt);
            }
        });

        javax.swing.GroupLayout jPanelGastosLayout = new javax.swing.GroupLayout(jPanelGastos);
        jPanelGastos.setLayout(jPanelGastosLayout);
        jPanelGastosLayout.setHorizontalGroup(
            jPanelGastosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelGastosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelGastosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelGastosLayout.createSequentialGroup()
                        .addComponent(jLabelTextoTotalGastosTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalGastosTabla))
                    .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelGastosLayout.setVerticalGroup(
            jPanelGastosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelGastosLayout.createSequentialGroup()
                .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelGastosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelTextoTotalGastosTabla)
                    .addComponent(jLabelTotalGastosTabla))
                .addGap(12, 12, 12))
        );

        jPanelGestoria.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Gestoría", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N
        jPanelGestoria.setPreferredSize(new java.awt.Dimension(402, 255));

        jTableGestoria.setModel(this.datosGestoria);
        jTableGestoria.setMinimumSize(new java.awt.Dimension(30, 64));
        jScrollPane19.setViewportView(jTableGestoria);

        jLabelTextoTotalGestoriaTabla.setText("Total:");

        jLabelTotalGestoriaTabla.setText("jLabel6");
        jLabelTotalGestoriaTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalGestoriaTablaPropertyChange(evt);
            }
        });

        javax.swing.GroupLayout jPanelGestoriaLayout = new javax.swing.GroupLayout(jPanelGestoria);
        jPanelGestoria.setLayout(jPanelGestoriaLayout);
        jPanelGestoriaLayout.setHorizontalGroup(
            jPanelGestoriaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelGestoriaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelGestoriaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane19, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)
                    .addGroup(jPanelGestoriaLayout.createSequentialGroup()
                        .addComponent(jLabelTextoTotalGestoriaTabla)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalGestoriaTabla)))
                .addContainerGap())
        );
        jPanelGestoriaLayout.setVerticalGroup(
            jPanelGestoriaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelGestoriaLayout.createSequentialGroup()
                .addComponent(jScrollPane19, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelGestoriaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalGestoriaTabla)
                    .addComponent(jLabelTextoTotalGestoriaTabla))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDateChooserFechaCajaChica.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jDateChooserFechaCajaChicaPropertyChange(evt);
            }
        });

        jLabelFechaCajaBuscar.setText("Fecha:");

        jPanelBuscarCajaChica.setBorder(javax.swing.BorderFactory.createTitledBorder("Buscar"));

        jLabelBuscarCajaChicaDescripcion.setText("Descripción:");

        jLabelBuscarCajaChicaDetalle.setText("Detalle:");

        jLabelBuscarCajaChicaCliente.setText("Cliente:");

        jButtonBuscarCajaChica.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonBuscarCajaChica.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/buscar.png"))); // NOI18N
        jButtonBuscarCajaChica.setText("Buscar");
        jButtonBuscarCajaChica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBuscarCajaChicaActionPerformed(evt);
            }
        });

        jButtonDeshacerBusquedaCajaChica.setFont(new java.awt.Font("Tahoma", 1, 11));
        jButtonDeshacerBusquedaCajaChica.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/flechaatras.png"))); // NOI18N
        jButtonDeshacerBusquedaCajaChica.setText("Deshacer Búsqueda");
        jButtonDeshacerBusquedaCajaChica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDeshacerBusquedaCajaChicaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBuscarCajaChicaLayout = new javax.swing.GroupLayout(jPanelBuscarCajaChica);
        jPanelBuscarCajaChica.setLayout(jPanelBuscarCajaChicaLayout);
        jPanelBuscarCajaChicaLayout.setHorizontalGroup(
            jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarCajaChicaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonBuscarCajaChica, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBuscarCajaChicaLayout.createSequentialGroup()
                        .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelBuscarCajaChicaCliente)
                            .addComponent(jLabelBuscarCajaChicaDescripcion)
                            .addComponent(jLabelBuscarCajaChicaDetalle))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldBuscarCajaChicaCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldBuscarCajaChicaDescripcion, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)
                            .addComponent(jTextFieldBuscarCajaChicaDetalle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)))
                    .addComponent(jButtonDeshacerBusquedaCajaChica, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelBuscarCajaChicaLayout.setVerticalGroup(
            jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBuscarCajaChicaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelBuscarCajaChicaDescripcion)
                    .addComponent(jTextFieldBuscarCajaChicaDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelBuscarCajaChicaCliente)
                    .addComponent(jTextFieldBuscarCajaChicaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelBuscarCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelBuscarCajaChicaDetalle)
                    .addComponent(jTextFieldBuscarCajaChicaDetalle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonBuscarCajaChica)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)
                .addComponent(jButtonDeshacerBusquedaCajaChica))
        );

        jPanelTotalesCajaChica.setBorder(javax.swing.BorderFactory.createTitledBorder("Totales"));

        jLabelTextoTotalGestoría.setText("Total Gestoría:");

        jLabelTotalGestoria.setText("jLabel6");
        jLabelTotalGestoria.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalGestoriaPropertyChange(evt);
            }
        });

        jLabelFechaCajaTexto.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelFechaCajaTexto.setText("Fecha:");

        jLabelFechaCaja.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabelFechaCaja.setText("jLabel6");
        jLabelFechaCaja.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelFechaCajaPropertyChange(evt);
            }
        });

        jLabelTextoTotalGastos.setText("Total Gastos:");

        jLabelTotalGastos.setText("jLabel4");
        jLabelTotalGastos.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalGastosPropertyChange(evt);
            }
        });

        jLabelTextoToalCaja.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelTextoToalCaja.setText("Total:");

        jLabelTotalCajaChica.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabelTotalCajaChica.setText("jLabel5");
        jLabelTotalCajaChica.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalCajaChicaPropertyChange(evt);
            }
        });

        jSeparator3.setBackground(new java.awt.Color(0, 0, 0));
        jSeparator3.setForeground(new java.awt.Color(0, 0, 0));

        jLabelTextoTotalRepuestos.setText("Total Repuestos:");

        jLabelTotalRepuestos.setText("jLabel5");
        jLabelTotalRepuestos.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalRepuestosPropertyChange(evt);
            }
        });

        jLabelTextoTotalServices.setText("Total Services:");

        jLabelTotalServices.setText("jLabel5");
        jLabelTotalServices.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalServicesPropertyChange(evt);
            }
        });

        jLabelTextoTotalMotoEntrega.setText("Total Entregas de Moto:");

        jLabelTotalMotoEntrega.setText("jLabel5");
        jLabelTotalMotoEntrega.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalMotoEntregaPropertyChange(evt);
            }
        });

        jLabelTextoTotalMotoCuota.setText("Total Cuotas de Moto:");

        jLabelTotalMotoCuota.setText("jLabel5");
        jLabelTotalMotoCuota.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalMotoCuotaPropertyChange(evt);
            }
        });

        jLabelTotalVarios.setText("jLabel1");
        jLabelTotalVarios.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalVariosPropertyChange(evt);
            }
        });

        jLabelTextoVarios.setText("Total Varios:");

        javax.swing.GroupLayout jPanelTotalesCajaChicaLayout = new javax.swing.GroupLayout(jPanelTotalesCajaChica);
        jPanelTotalesCajaChica.setLayout(jPanelTotalesCajaChicaLayout);
        jPanelTotalesCajaChicaLayout.setHorizontalGroup(
            jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTotalesCajaChicaLayout.createSequentialGroup()
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelTotalesCajaChicaLayout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addComponent(jLabelFechaCajaTexto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelFechaCaja))
                    .addGroup(jPanelTotalesCajaChicaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelTextoTotalGastos)
                            .addComponent(jLabelTextoTotalGestoría)
                            .addComponent(jLabelTextoTotalRepuestos)
                            .addComponent(jLabelTextoTotalServices)
                            .addComponent(jLabelTextoTotalMotoEntrega)
                            .addComponent(jLabelTextoTotalMotoCuota)
                            .addComponent(jLabelTextoVarios))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelTotalServices)
                            .addComponent(jLabelTotalRepuestos)
                            .addComponent(jLabelTotalGastos)
                            .addComponent(jLabelTotalGestoria)
                            .addComponent(jLabelTotalMotoEntrega)
                            .addComponent(jLabelTotalMotoCuota)
                            .addComponent(jLabelTotalVarios))
                        .addGap(16, 16, 16))
                    .addGroup(jPanelTotalesCajaChicaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelTotalesCajaChicaLayout.createSequentialGroup()
                                .addComponent(jLabelTextoToalCaja)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelTotalCajaChica)
                                .addGap(24, 24, 24)))))
                .addContainerGap())
        );
        jPanelTotalesCajaChicaLayout.setVerticalGroup(
            jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelTotalesCajaChicaLayout.createSequentialGroup()
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFechaCajaTexto)
                    .addComponent(jLabelFechaCaja))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalGestoría)
                    .addComponent(jLabelTotalGestoria))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalGastos)
                    .addComponent(jLabelTotalGastos))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalRepuestos)
                    .addComponent(jLabelTotalRepuestos))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalServices)
                    .addComponent(jLabelTotalServices))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalMotoEntrega)
                    .addComponent(jLabelTotalMotoEntrega))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTextoTotalMotoCuota)
                    .addComponent(jLabelTotalMotoCuota))
                .addGap(6, 6, 6)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalVarios)
                    .addComponent(jLabelTextoVarios))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelTotalesCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalCajaChica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabelTextoToalCaja))
                .addContainerGap())
        );

        jPanelCajaChicaVarios.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Varios", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jLabelTotalVariosTabla.setText("jLabel1");
        jLabelTotalVariosTabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jLabelTotalVariosTablaPropertyChange(evt);
            }
        });

        jLabelTextoTotalVarios.setText("Total:");

        jTableVarios.setModel(this.datosVarios);
        jScrollPane4.setViewportView(jTableVarios);

        javax.swing.GroupLayout jPanelCajaChicaVariosLayout = new javax.swing.GroupLayout(jPanelCajaChicaVarios);
        jPanelCajaChicaVarios.setLayout(jPanelCajaChicaVariosLayout);
        jPanelCajaChicaVariosLayout.setHorizontalGroup(
            jPanelCajaChicaVariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelCajaChicaVariosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelCajaChicaVariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCajaChicaVariosLayout.createSequentialGroup()
                        .addComponent(jLabelTextoTotalVarios)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelTotalVariosTabla))
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelCajaChicaVariosLayout.setVerticalGroup(
            jPanelCajaChicaVariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelCajaChicaVariosLayout.createSequentialGroup()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 190, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelCajaChicaVariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTotalVariosTabla)
                    .addComponent(jLabelTextoTotalVarios)))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jPanelMoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanelServices, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelRepuestos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelCajaChicaVarios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(jPanelTotalesCajaChica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addComponent(jLabelFechaCajaBuscar)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jDateChooserFechaCajaChica, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jPanelBuscarCajaChica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jPanelGastos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jPanelGestoria, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 421, Short.MAX_VALUE)))
                        .addGap(540, 540, 540))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jComboBoxPlanillas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(32, 32, 32)
                        .addComponent(jButtonAgregarMovimiento)
                        .addGap(3, 3, 3)
                        .addComponent(jButtonEliminarMovimiento)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxPlanillas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAgregarMovimiento)
                    .addComponent(jButtonEliminarMovimiento))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelTotalesCajaChica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jDateChooserFechaCajaChica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelFechaCajaBuscar))
                                .addGap(18, 18, 18)
                                .addComponent(jPanelBuscarCajaChica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jPanelCajaChicaVarios, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelServices, javax.swing.GroupLayout.Alignment.TRAILING, 0, 155, Short.MAX_VALUE)
                            .addComponent(jPanelGestoria, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE))
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelGastos, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jPanelRepuestos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jPanelMoto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(30, Short.MAX_VALUE))
        );

        jScrollPane1.setViewportView(jPanel2);

        javax.swing.GroupLayout jPanelCajaChicaLayout = new javax.swing.GroupLayout(jPanelCajaChica);
        jPanelCajaChica.setLayout(jPanelCajaChicaLayout);
        jPanelCajaChicaLayout.setHorizontalGroup(
            jPanelCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1235, Short.MAX_VALUE)
        );
        jPanelCajaChicaLayout.setVerticalGroup(
            jPanelCajaChicaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 652, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab("Caja Chica", jPanelCajaChica);

        jTableMorosos.setModel(this.datosMorosos);
        jTableMorosos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableMorososMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(jTableMorosos);

        javax.swing.GroupLayout jPanelMorososLayout = new javax.swing.GroupLayout(jPanelMorosos);
        jPanelMorosos.setLayout(jPanelMorososLayout);
        jPanelMorososLayout.setHorizontalGroup(
            jPanelMorososLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMorososLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1215, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanelMorososLayout.setVerticalGroup(
            jPanelMorososLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMorososLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 630, Short.MAX_VALUE)
                .addContainerGap())
        );

        jTabbedPane1.addTab("Morosos", jPanelMorosos);

        titInfDet2.setText("Informe Detallado");

        selAño2.setText("Seleccione Año:");

        inf2anios.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));
        inf2anios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                inf2aniosActionPerformed(evt);
            }
        });

        jTableInfCli1.setModel(this.infoClienteMes);
        jScrollPaneInfClie1.setViewportView(jTableInfCli1);

        jTableInfCli2.setModel(this.infoClienteMesResumido);
        jScrollPane3.setViewportView(jTableInfCli2);

        titInfRes2.setText("Informe Resumido");

        impInfMes1.setFont(new java.awt.Font("Tahoma", 1, 11));
        impInfMes1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        impInfMes1.setText("Imprimir Informe Detallado");
        impInfMes1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                impInfMes1ActionPerformed(evt);
            }
        });

        impInfMes2.setFont(new java.awt.Font("Tahoma", 1, 11));
        impInfMes2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        impInfMes2.setText("Imprimir Informe Reducido");
        impInfMes2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                impInfMes2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelInformeClientesLayout = new javax.swing.GroupLayout(jPanelInformeClientes);
        jPanelInformeClientes.setLayout(jPanelInformeClientesLayout);
        jPanelInformeClientesLayout.setHorizontalGroup(
            jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformeClientesLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(impInfMes2)
                    .addGroup(jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanelInformeClientesLayout.createSequentialGroup()
                            .addComponent(titInfRes2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(impInfMes1))
                        .addGroup(jPanelInformeClientesLayout.createSequentialGroup()
                            .addComponent(selAño2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(inf2anios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(titInfDet2)
                        .addComponent(jScrollPane3)
                        .addComponent(jScrollPaneInfClie1, javax.swing.GroupLayout.PREFERRED_SIZE, 1169, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(120, Short.MAX_VALUE))
        );
        jPanelInformeClientesLayout.setVerticalGroup(
            jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformeClientesLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(titInfDet2)
                .addGap(18, 18, 18)
                .addGroup(jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(selAño2)
                    .addComponent(inf2anios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32)
                .addComponent(jScrollPaneInfClie1, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelInformeClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelInformeClientesLayout.createSequentialGroup()
                        .addGap(40, 40, 40)
                        .addComponent(titInfRes2))
                    .addComponent(impInfMes1))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(impInfMes2)
                .addContainerGap(115, Short.MAX_VALUE))
        );

        jScrollPaneInformeClientes.setViewportView(jPanelInformeClientes);

        jTabbedPane1.addTab("Informe Clientes/Meses", jScrollPaneInformeClientes);

        titInfDet.setText("Informe Detalldo");

        selAño.setText("Seleccione Año:");

        selMes.setText("Seleccione Mes:");

        infAnios.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020" }));
        infAnios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                infAniosActionPerformed(evt);
            }
        });

        infMeses.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre" }));
        infMeses.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                infMesesActionPerformed(evt);
            }
        });

        jTableInf1.setModel(this.datosPagosMes);
        jScrollPaneInf1.setViewportView(jTableInf1);

        titInfRes.setText("Informe Resumido");

        jTableinf2.setModel(this.datosPagosMesResumido);
        jScrollPaneInf2.setViewportView(jTableinf2);

        impInfDiario2.setFont(new java.awt.Font("Tahoma", 1, 11));
        impInfDiario2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        impInfDiario2.setText("Imprimir Informe Reducido");
        impInfDiario2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                impInfDiario2ActionPerformed(evt);
            }
        });

        impInfDiario1.setFont(new java.awt.Font("Tahoma", 1, 11));
        impInfDiario1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/chiquitas/documento.png"))); // NOI18N
        impInfDiario1.setText("Imprimir Informe Detallado");
        impInfDiario1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                impInfDiario1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelInformeDiarioLayout = new javax.swing.GroupLayout(jPanelInformeDiario);
        jPanelInformeDiario.setLayout(jPanelInformeDiarioLayout);
        jPanelInformeDiarioLayout.setHorizontalGroup(
            jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformeDiarioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(titInfDet)
                    .addGroup(jPanelInformeDiarioLayout.createSequentialGroup()
                        .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(selAño)
                            .addComponent(selMes))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(infMeses, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(infAnios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPaneInf2, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelInformeDiarioLayout.createSequentialGroup()
                            .addComponent(titInfRes)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(impInfDiario1))
                        .addComponent(jScrollPaneInf1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1287, Short.MAX_VALUE)
                        .addComponent(impInfDiario2)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelInformeDiarioLayout.setVerticalGroup(
            jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformeDiarioLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(titInfDet)
                .addGap(18, 18, 18)
                .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(selAño)
                    .addComponent(infAnios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(selMes)
                    .addComponent(infMeses, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jScrollPaneInf1, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanelInformeDiarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelInformeDiarioLayout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(titInfRes))
                    .addGroup(jPanelInformeDiarioLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(impInfDiario1)))
                .addGap(18, 18, 18)
                .addComponent(jScrollPaneInf2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(impInfDiario2)
                .addContainerGap(129, Short.MAX_VALUE))
        );

        jScrollPaneInformeDiario.setViewportView(jPanelInformeDiario);

        jTabbedPane1.addTab("Informe Diario", jScrollPaneInformeDiario);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1240, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 680, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * Muestra la ventana para agregar un contacto a la agenda cuando se presiona
     * el botÃ³n Agregar Contacto
     * @param evt 
     */
private void AgendaAgregarContactoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AgendaAgregarContactoActionPerformed
    this.AgregarAgendaNombre.setText("");
    this.AgregarAgendaApellido.setText("");
    this.AgregarAgendaDireccion.setText("");
    this.AgregarAgendaTelefono.setText("");
    this.AgregarAgendaEmail.setText("");
    this.AgregarAgendaObsevaciones.setText("");
    this.jDialogAgendaAgregarContacto.setVisible(true);
}//GEN-LAST:event_AgendaAgregarContactoActionPerformed

    /**
     * Deja de mostrar la ventana de agregar contacto a la agenda cuando se presiona
     * el botÃ³n cancelar en la misma
     * @param evt 
     */
private void AgregarAgendaCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AgregarAgendaCancelarActionPerformed
    this.jDialogAgendaAgregarContacto.setVisible(false);
}//GEN-LAST:event_AgregarAgendaCancelarActionPerformed

    /**
     * Agrega el nuevo contacto ingresado a la agenda, actualiza la lista con la 
     * informaciÃ³n de la base de datos y deja de mostrar la ventana de agregar 
     * contacto a la agenda
     * @param evt 
     */
private void AgregarAgendaAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AgregarAgendaAceptarActionPerformed
    try {
        AgendaDTO agenda = new AgendaDTO(this.AgregarAgendaNombre.getText(), this.AgregarAgendaApellido.getText(), this.AgregarAgendaDireccion.getText(), this.AgregarAgendaTelefono.getText(), this.AgregarAgendaEmail.getText(), this.AgregarAgendaObsevaciones.getText());
        if (agenda.esVacia()) {
            throw new UIException("Debe completar al menos uno de los campos");
        } else {
            this.controlador.crearAgenda(agenda);
            this.actualizarAgenda();
            this.jDialogAgendaAgregarContacto.setVisible(false);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (UIException ex) {
        this.mostrarError(ex);
    } catch (Exception ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_AgregarAgendaAceptarActionPerformed

    /**
     * Cuando se presiona el botÃ³n agregar contacto muestra el dialog de advertencia
     * si no se encuentra seleccionada ninguna entrada de la agenda o sino el dialog 
     * de eliminar contacto
     * @param evt 
     */
private void AgendaEliminarContactoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AgendaEliminarContactoActionPerformed
    if (this.jTableAgenda.getSelectedRow() == -1) {
        this.jDialogAgendaAdvertencia.setVisible(true);
    } else {
        this.jDialogAgendaEliminarContacto.setVisible(true);
    }
}//GEN-LAST:event_AgendaEliminarContactoActionPerformed

    /**
     * Cuando se presiona el botÃ³n aceptar en el dialog de advertencia, deja de 
     * mostrarlo
     * @param evt 
     */
private void jButtonAdvertenciaAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAdvertenciaAceptarActionPerformed
    this.jDialogAgendaAdvertencia.setVisible(false);
}//GEN-LAST:event_jButtonAdvertenciaAceptarActionPerformed

    /**
     * Si el usuario acepta eliminar el contacto, se elimina de la base de datos,
     * se actualiza la informaciÃ³n mostrada en la tabla y se deja de mostrar el
     * dialog que consultaba si deseaba eliminarlo
     * @param evt 
     */
private void jButtonEliminarContactoSiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarContactoSiActionPerformed
    try {
        this.controlador.eliminarAgenda(this.datosAgenda.getElementAt(this.jTableAgenda.getSelectedRow()));
        this.actualizarAgenda();
        this.jDialogAgendaEliminarContacto.setVisible(false);
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonEliminarContactoSiActionPerformed

    /**
     * Si el usuario no desea eliminar el contacto, se deja de mostrar el dialog
     * @param evt 
     */
private void jButtonEliminarContactoNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarContactoNoActionPerformed
    this.jDialogAgendaEliminarContacto.setVisible(false);
}//GEN-LAST:event_jButtonEliminarContactoNoActionPerformed

    /**
     * Si alguna tecla es presionada en el campo nombre del panel de busqueda se
     * realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo apellido del panel de busqueda se
     * realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo direcciÃ³n del panel de busqueda se
     * realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo telÃ©fono del panel de busqueda se
     * realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo email del panel de busqueda se
     * realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo observaciones del panel de busqueda 
     * se realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si cambia el estado del checkbox del panel de busqueda de la agenda se 
     * ejecuta este mÃ©todo. Si esta activado permite filtrar por los campos de 
     * la tabla y si esta desactivado muestra la lista completa de la agenda
     * @param evt 
     */
    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n Buscar Venta, actualiza
     * la lista de las ventas y la muestra en pantalla
     * @param evt 
     */
private void jButtonBuscarVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarVentaActionPerformed
    this.actualizarVenta();
    this.jPanelBuscarVentas.setVisible(true);
    this.jLabelTotalVentas.setText("Cantidad: " + jTableBuscarVenta.getRowCount());
    this.jPanelDatosVenta.setVisible(false);
}//GEN-LAST:event_jButtonBuscarVentaActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando cambia el tipo de venta cuando se estÃ¡ creando
     * una nueva venta. Muestra los datos correspondientes al tipo de venta elegido
     * @param evt 
     */
private void jComboBoxTipoVentaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoVentaItemStateChanged
    switch (jComboBoxTipoVenta.getSelectedIndex()) {
        case 0:
            this.jPanelDatosMotovehiculo.setVisible(true);
            this.jPanelDatosService.setVisible(false);
            this.jPanelDatosRepuesto.setVisible(false);
            break;
        case 1:
            this.jPanelDatosMotovehiculo.setVisible(false);
            this.jPanelDatosService.setVisible(true);
            this.jPanelDatosRepuesto.setVisible(false);
            break;
        case 2:
            this.jPanelDatosMotovehiculo.setVisible(false);
            this.jPanelDatosService.setVisible(false);
            this.jPanelDatosRepuesto.setVisible(true);
            break;
    }
}//GEN-LAST:event_jComboBoxTipoVentaItemStateChanged

    /**
     * Este mÃ©todo se ejecuta cuando cambia el tipo de pago cuando se estÃ¡ creando
     * una nueva venta. Muestra los datos correspondientes al tipo de pago elegido
     * @param evt 
     */
private void jComboBoxTipoPagoVentaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxTipoPagoVentaItemStateChanged
    if (jComboBoxTipoPagoVenta.getSelectedIndex() == 0) {
        this.jPanelDatosPagoCuotas.setVisible(false);
        this.jTabbedPaneDatosGarantes.setVisible(false);
        this.jTextFieldEntregaPagoVenta.setEnabled(false);
    } else {
        this.jPanelDatosPagoCuotas.setVisible(true);
        this.jTabbedPaneDatosGarantes.setVisible(true);
        this.jTextFieldEntregaPagoVenta.setEnabled(true);
    }
}//GEN-LAST:event_jComboBoxTipoPagoVentaItemStateChanged

    /**
     * Si alguna tecla es presionada en el campo cliente del panel de busqueda de las
     * ventas se realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si alguna tecla es presionada en el campo fecha del panel de busqueda de 
     * las ventas se realiza la búsqueda en la base de datos
     * @param evt 
     */
    /**
     * Si cambia el estado del checkbox del panel de busqueda de las ventas se 
     * ejecuta este mÃ©todo. Si esta activado permite filtrar por los campos de 
     * la tabla y si esta desactivado muestra la lista completa de las ventas
     * @param evt 
     */
    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n de Nueva Venta
     * @param evt 
     */
private void jButtonNuevaVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNuevaVentaActionPerformed
    this.jPanelBuscarVentas.setVisible(false);
    this.jPanelDatosVenta.setVisible(true);
    this.jPanelCuotasVenta.setVisible(false);
    this.jButtonGuardarNuevaVenta.setVisible(true);
    this.jButtonImprimirVenta.setVisible(false);
    this.jButtonImprimirComprobanteVenta.setVisible(false);
    this.jButtonGuardarCambiosVenta.setVisible(false);
    this.jButtonEliminarVenta.setVisible(false);
    this.venta = new VentaDTO();
    this.mostrarVenta(this.venta);
    this.clienteVenta = new PersonaDTO();
    this.mostrarClienteVenta(this.clienteVenta);
    this.garanteVenta1 = new PersonaDTO();
    this.mostrarGarante1Venta(this.garanteVenta1);
    this.garanteVenta2 = new PersonaDTO();
    this.mostrarGarante2Venta(this.garanteVenta2);
    this.motoVenta = new MotoDTO();
    this.mostrarMotoVenta(this.motoVenta);
    this.planVenta = new PlanDTO();
    this.mostrarPlanVenta(this.planVenta);
    this.jTextFieldImporteServiceVenta.setText("");
    this.jTextFieldDescripcionServiceVenta.setText("");
    this.jTextFieldImporteRespuestoVenta.setText("");
    this.jTextFieldDescripcionRespuestoVenta.setText("");
    this.jDateChooserFechaVenta.setEnabled(true);
    this.jComboBoxTipoVenta.setEnabled(true);
    this.jComboBoxTipoPagoVenta.setEnabled(true);
}//GEN-LAST:event_jButtonNuevaVentaActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n Guardar Cambios,
     * cuando se estÃ¡n modificando los datos de una venta
     * @param evt 
     */
private void jButtonGuardarCambiosVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarCambiosVentaActionPerformed
    try {
        this.cargarVenta();
        this.controlador.actualizarVenta(this.venta);
        this.mostrarNotificacion("Venta modificada correctamente");
    } catch (DAOException ex) {
        System.out.println(ex);
        this.mostrarError(ex);
    } catch (UIException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonGuardarCambiosVentaActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n Guardar Nueva Venta,
     * se almacena en la base de datos la misma y se la muestra para modificaciÃ³n
     * @param evt 
     */
private void jButtonGuardarNuevaVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarNuevaVentaActionPerformed
    try {
        this.cargarVenta();
        this.controlador.agregarVenta(this.venta);
        this.jButtonGuardarNuevaVenta.setVisible(false);
        this.jButtonGuardarCambiosVenta.setVisible(true);
        this.jButtonEliminarVenta.setVisible(true);
        this.mostrarVenta(this.controlador.getVenta(this.venta.getId()));
        this.mostrarNotificacion("Venta almacenada correctamente");
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (UIException ex) {
        this.mostrarError(ex);
    }

}//GEN-LAST:event_jButtonGuardarNuevaVentaActionPerformed

    /** 
     * Este mÃ©todo se ejecuta cuando se completa el documento y se pasa a otro campo
     * en el cliente, si existe una persona con ese dni completa los demas campos
     * @param evt 
     */
private void jTextFieldDNIClienteVentaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldDNIClienteVentaFocusLost
    try {
        PersonaDTO persona = null;
        persona = this.controlador.buscarPersona(Integer.parseInt(this.jTextFieldDNIClienteVenta.getText()));
        if (persona != null) {
            this.clienteVenta = persona;
            this.mostrarClienteVenta(this.clienteVenta);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (Exception ex) {
        this.mostrarError(new UIException("El dni del cliente debe ser un número", ex));
    }
}//GEN-LAST:event_jTextFieldDNIClienteVentaFocusLost

    /** 
     * Este mÃ©todo se ejecuta cuando se completa el documento y se pasa a otro campo
     * en el garante 1, si existe una persona con ese dni completa los demas campos
     * @param evt 
     */
private void jTextFieldDNIGaranteVenta1FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldDNIGaranteVenta1FocusLost
    try {
        PersonaDTO persona = null;
        persona = this.controlador.buscarPersona(Integer.parseInt(this.jTextFieldDNIGaranteVenta1.getText()));
        if (persona != null) {
            this.garanteVenta1 = persona;
            this.mostrarGarante1Venta(this.garanteVenta1);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (Exception ex) {
        this.mostrarError(new UIException("El dni del garante debe ser un número", ex));
    }
}//GEN-LAST:event_jTextFieldDNIGaranteVenta1FocusLost

    /**
     * Este mÃ©todo se ejecuta cuando se completa el documento y se pasa a otro campo
     * en el garante 2, si existe una persona con ese dni completa los demas campos
     * @param evt 
     */
private void jTextFieldDNIGaranteVenta2FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldDNIGaranteVenta2FocusLost
    try {
        PersonaDTO persona = null;
        persona = this.controlador.buscarPersona(Integer.parseInt(this.jTextFieldDNIGaranteVenta2.getText()));
        if (persona != null) {
            this.garanteVenta2 = persona;
            this.mostrarGarante2Venta(this.garanteVenta2);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (Exception ex) {
        this.mostrarError(new UIException("El dni del garante debe ser un número", ex));
    }
}//GEN-LAST:event_jTextFieldDNIGaranteVenta2FocusLost

    /**
     * Este mÃ©todo se ejecuta cuando se hace click sobre la tabla de 
     * busqueda de ventas, muestra la venta completa para modificaciÃ³n.
     * @param evt 
     */
private void jTableBuscarVentaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableBuscarVentaMouseClicked
    try {
        this.jPanelBuscarVentas.setVisible(false);
        this.jPanelDatosVenta.setVisible(true);
        this.jButtonGuardarNuevaVenta.setVisible(false);
        this.jButtonImprimirVenta.setVisible(true);
        this.jButtonImprimirComprobanteVenta.setVisible(true);
        this.jButtonGuardarCambiosVenta.setVisible(true);
        this.jButtonEliminarVenta.setVisible(true);
        this.mostrarVenta(this.controlador.getVenta(this.datosVenta.getElementAt(this.jTableBuscarVenta.getSelectedRow())));
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jTableBuscarVentaMouseClicked

    /**
     * Este mÃ©todo se ejecuta cuando se hace click sobre la tabla de 
     * cuotas de una venta, muestra un listado de los pagos de la misma.
     * @param evt 
     */
private void jTableCuotasVentaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableCuotasVentaMouseClicked
    if (this.datosPlanes.getElementAt(this.jTablePlanesVenta.getSelectedRow()).isActivo()) {
        this.cuota = this.datosCuotas.getElementAt(this.jTableCuotasVenta.getSelectedRow());
        this.jLabelNumeroCuotaVerPagos.setText(Integer.toString(this.cuota.getNumero()));
        this.numeroCuota=Integer.toString(this.cuota.getNumero());
        this.datosPagos.setData(this.cuota.getPagos());
        this.jTablePagosVerPagos.updateUI();
        this.jPanelAgregarPago.setVisible(false);
        this.jPanelVerPagos.setVisible(true);
        this.jDialogAgregarPago.setVisible(true);
    } else {
        try {
            throw new UIException("No se puede pagar una cuota de un plan inactivo");
        } catch (UIException ex) {
            this.mostrarError(ex);
        }
    }
}//GEN-LAST:event_jTableCuotasVentaMouseClicked

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n Cerrar del 
     * jDialogVerPagos, cierra el dialog
     * @param evt 
     */
private void jButtonCerrarVerPagosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCerrarVerPagosActionPerformed
    this.jDialogAgregarPago.setVisible(false);
}//GEN-LAST:event_jButtonCerrarVerPagosActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n Agregar Pago
     * en el jDialogVerPagos. Abre otro dialog para agregar un nuevo pago.
     * @param evt 
     */
private void jButtonAgregarPagosVerPagosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarPagosVerPagosActionPerformed
    this.jTextFieldFechaCuotaAgregarPago.setText(Fecha.formatearFecha(this.cuota.getFechaVencimiento()));
    this.jTextFieldMontoAdeudadoAgregarPago.setText(Double.toString(this.cuota.getMontoAdeudado()));
    this.jTextFieldInteresAgregarPago.setText("5");
    this.jDateChooserFechaPago.setDate(new java.util.Date());
    this.jTextFieldMontoAgregarPago.setText(Double.toString(this.cuota.getMontoAdeudado()));
    this.jPanelVerPagos.setVisible(false);
    this.jPanelAgregarPago.setVisible(true);
    this.jButtonConfirmarAgregarPago.setEnabled(true);
    this.jButtonImprimirReciboAgregarPago.setEnabled(false);
    
}//GEN-LAST:event_jButtonAgregarPagosVerPagosActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el boton Cancelar,
     * en el jDialogAgregarPago, cierra el dialog
     * @param evt 
     */
private void jButtonCancelarAgregarPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarAgregarPagoActionPerformed
    this.jDialogAgregarPago.setVisible(false);
}//GEN-LAST:event_jButtonCancelarAgregarPagoActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el boton Confirmar,
     * en el jDialogAgregarPago, agrega el pago a la cuota y cierra el dialog
     * @param evt 
     */
private void jButtonConfirmarAgregarPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarAgregarPagoActionPerformed
    try {      
        this.controlador.agregarPago(this.cargarPago());
        this.cuota.setPagos(this.controlador.obtenerPagos(this.cuota.getId()));
        this.datosPagos.setData(this.cuota.getPagos());
        this.jTablePagosVerPagos.updateUI();
        this.jTableCuotasVenta.updateUI();
        this.jButtonImprimirReciboAgregarPago.setEnabled(true);
        this.jButtonConfirmarAgregarPago.setEnabled(false);
       
    } catch (UIException ex) {
        this.mostrarError(ex);
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonConfirmarAgregarPagoActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el combobox del interÃ©s
     * en el jDialogAgregarPago, modifica la cantidad a pagar de acuerdo a 
     * si se aplica o no interÃ©s
     * @param evt 
     */
private void jComboBoxInteresAgregarPagoItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxInteresAgregarPagoItemStateChanged
    try {
        if (this.jComboBoxInteresAgregarPago.getSelectedIndex() == 1) {
            this.jTextFieldMontoAgregarPago.setText(Double.toString(Double.parseDouble(this.jTextFieldMontoAdeudadoAgregarPago.getText()) + Double.parseDouble(this.jTextFieldMontoAdeudadoAgregarPago.getText()) * Double.parseDouble(this.jTextFieldInteresAgregarPago.getText()) / 100));
        } else {
            this.jTextFieldMontoAgregarPago.setText(this.jTextFieldMontoAdeudadoAgregarPago.getText());
        }
    } catch (NumberFormatException numberFormatException) {
        UIException ex = new UIException("El interés a aplicar debe ser un número", numberFormatException);
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jComboBoxInteresAgregarPagoItemStateChanged

    /**
     * Este mÃ©todo se ejecuta cuando se presina el botÃ³n cerrar del
     * jDialogErrorConexionDB, cierra el programa
     * @param evt 
     */
private void jDialogErrorConexionBDWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_jDialogErrorConexionBDWindowClosing
    System.exit(0);
}//GEN-LAST:event_jDialogErrorConexionBDWindowClosing

    /**
     * Este mÃ©todo se ejecuta cuando se presina el botÃ³n Aceptar del
     * jDialogErrorConexionDB, cierra el programa
     * @param evt 
     */
private void jButtonAceptarErrorConexionBDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarErrorConexionBDActionPerformed
    System.exit(0);
}//GEN-LAST:event_jButtonAceptarErrorConexionBDActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se acepta la ventana de error, deja de mostrar
     * el dialog del error
     * @param evt 
     */
private void jButtonAceptarErrorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarErrorActionPerformed
    this.jDialogError.setVisible(false);
}//GEN-LAST:event_jButtonAceptarErrorActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando cuando se presiona el botÃ³n Cambiar plan en la
     * ventana de ventas
     * @param evt 
     */
private void jButtonCambiarPlanVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCambiarPlanVentaActionPerformed
    this.jDialogCambiarPlan.setVisible(true);
}//GEN-LAST:event_jButtonCambiarPlanVentaActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se presiona el botÃ³n cancelar en el dialog de
     * cambiar plan, deja de mostrar el dialog
     * @param evt 
     */
private void jButtonCancelarPlanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarPlanActionPerformed
    this.jDialogCambiarPlan.setVisible(false);
}//GEN-LAST:event_jButtonCancelarPlanActionPerformed

    /**
     * Este mÃ©todo se ejecuta cuando se confirma el cambio del plan, cambia el plan
     * por el nuevo ingresado
     * @param evt 
     */
private void jButtonConfirmarPlanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarPlanActionPerformed
    try {
        this.cargarNuevoPlanVenta();        
        Integer iniciarCuotasEn = 1;
        try {
            iniciarCuotasEn = Integer.parseInt(this.jTextFieldIniciarNumeroCuota.getText());
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El número con el cual iniciará la numeración de las cuotas debe ser un número", numberFormatException);
        }
        this.controlador.cambiarPlan(this.venta, this.planVenta,iniciarCuotasEn);
        this.mostrarVenta(this.controlador.getVenta(this.venta.getId()));
        this.jDialogCambiarPlan.setVisible(false);
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } catch (UIException ex) {
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jButtonConfirmarPlanActionPerformed

    /**
     * Este mÃ©todo se ejcuta cuando se hace click sobre la table de planes, muestra
     * las cuotas de ese plan
     * @param evt 
     */
private void jTablePlanesVentaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTablePlanesVentaMouseClicked
    this.actualizarCuotas(this.datosPlanes.getElementAt(this.jTablePlanesVenta.getSelectedRow()).getCuotas());
    this.jPanelCuotasVenta.setVisible(true);
}//GEN-LAST:event_jTablePlanesVentaMouseClicked

    /**
     * Este metodo se ejecuta cuando se presiona el boton acetptar movimineto
     * del jDialogAgregarMovimientoCaja
     * @param evt 
     */
private void jButtonAceptarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarMovimientoActionPerformed
    try {
        double importeCaja;
        String detalle = null;
        if ((this.jComboBoxPlanillas.getSelectedItem().toString().equals("Gestoría")) | (this.jComboBoxAgregarMovimiento.getSelectedItem().toString().equals("Gestoría"))) {  //si esta seleccionado gestoriaya sea del comboBox del panle Caja o del jdialog agregar movimiento 
            if (this.jRadioButtonEgresoCaja.isSelected() == true) {
                importeCaja = Math.abs(Double.parseDouble(this.jTextFieldImporteCaja.getText())) * (-1);
            } else {
                if (this.jRadioButtonIngresoCaja.isSelected() == true) {
                    importeCaja = Math.abs(Double.parseDouble(this.jTextFieldImporteCaja.getText()));
                } else {
                    importeCaja = Double.parseDouble(this.jTextFieldImporteCaja.getText());
                }
            }
            if (importeCaja >= 0) {
                detalle = "Ingreso";
            } else {
                detalle = "Egreso";
            }
            CajaChicaDTO gestoria = new CajaChicaDTO(1, this.jTextFieldDescripCaja.getText(), importeCaja, this.devolverFecha(), detalle);
            this.controlador.crearGestoria(gestoria);
            this.actualizarGestoria(this.devolverFecha());
            this.jLabelTotalGestoriaPropertyChange(null);
            this.jLabelTotalGestoriaTablaPropertyChange(null);
        }else { 
        if ((this.jComboBoxPlanillas.getSelectedItem().toString().equals("Varios")) | (this.jComboBoxAgregarMovimiento.getSelectedItem().toString().equals("Varios"))) {  //si esta seleccionado gestoriaya sea del comboBox del panle Caja o del jdialog agregar movimiento 
            if (this.jRadioButtonEgresoCaja.isSelected() == true) {
                importeCaja = Math.abs(Double.parseDouble(this.jTextFieldImporteCaja.getText())) * (-1);
            } else {
                if (this.jRadioButtonIngresoCaja.isSelected() == true) {
                    importeCaja = Math.abs(Double.parseDouble(this.jTextFieldImporteCaja.getText()));
                } else {
                    importeCaja = Double.parseDouble(this.jTextFieldImporteCaja.getText());
                }
            }
            if (importeCaja >= 0) {
                detalle = "Ingreso";
            } else {
                detalle = "Egreso";
            }
            CajaChicaDTO varios = new CajaChicaDTO(3, this.jTextFieldDescripCaja.getText(), importeCaja, this.devolverFecha(), detalle);
            this.controlador.crearVarios(varios);
            this.actualizarVarios(this.devolverFecha());
            this.jLabelTotalVariosPropertyChange(null);
            this.jLabelTotalVariosTablaPropertyChange(null);
        } else {  // si esta elegido del comboBox del jdialog o del panel caja Gastos
            if ((this.jComboBoxPlanillas.getSelectedItem().toString().equals("Gastos")) | (this.jComboBoxAgregarMovimiento.getSelectedItem().toString().equals("Gastos"))) {
                importeCaja = Math.abs(Double.parseDouble(this.jTextFieldImporteCaja.getText())) * (-1);
                CajaChicaDTO gastos = new CajaChicaDTO(2, this.jTextFieldDescripCaja.getText(), importeCaja, this.devolverFecha(), this.devolverDetalleGastos());
                this.controlador.crearGastos(gastos);
                this.actualizarGastos(this.devolverFecha());
                this.jLabelTotalGastosPropertyChange(null);
                this.jLabelTotalGastosTablaPropertyChange(null);
            }
        }
        }  
        this.jLabelTotalCajaChicaPropertyChange(null);
        this.jDialogAgregarMovimientoCaja.setVisible(false);
    } catch (NumberFormatException ex) {
        //si el usuario ingresa otra cosa en el textField de importe que no sean números del jdialog agregar movimiento
        this.jLabelAdvertenciaCaja.setText("Por favor, debe ingresar solo NÚMEROS en importe");
        this.jDialogAdvertenciaCaja.setVisible(true);
    }catch (DAOException ex) {
        this.mostrarError(ex);
    }    // TODO add your handling code here:} // TODO add your handling code here:
}//GEN-LAST:event_jButtonAceptarMovimientoActionPerformed
    /**
     * este metodo se ejecuta cuando se presiona el jcomboBox de el jdialog agregarMoviemiento
     * @param evt 
     */
    private void jComboBoxAgregarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxAgregarMovimientoActionPerformed
        switch (jComboBoxAgregarMovimiento.getSelectedIndex()) {
            case 0: //si esta seleccionado gestoria
                this.jRadioButtonGastosGastosFijos.setVisible(false);
                this.jRadioButtonGastosGastosVarios.setVisible(false);
                this.jRadioButtonGastosSueldos.setVisible(false);
                this.jRadioButtonEgresoCaja.setVisible(true);
                this.jRadioButtonIngresoCaja.setVisible(true);
                break;
            case 1: //si esta seleccionado gastos 
                this.jRadioButtonGastosGastosFijos.setVisible(true);
                this.jRadioButtonGastosGastosVarios.setSelected(true);
                this.jRadioButtonGastosGastosVarios.setVisible(true);
                this.jRadioButtonGastosSueldos.setVisible(true);
                this.jRadioButtonEgresoCaja.setVisible(false);
                this.jRadioButtonIngresoCaja.setVisible(false);
                break;
            case 2: //si esta seleccionado varios
                this.jRadioButtonGastosGastosFijos.setVisible(false);
                this.jRadioButtonGastosGastosVarios.setVisible(false);
                this.jRadioButtonGastosSueldos.setVisible(false);
                this.jRadioButtonEgresoCaja.setVisible(true);
                this.jRadioButtonIngresoCaja.setVisible(true);
                break;
        }// TODO add your handling code here:     
    }//GEN-LAST:event_jComboBoxAgregarMovimientoActionPerformed
    /**
     * Este metodo se ejecuta al presionar el boton eliminar del panel caja,
     * solo si el elemento seleccionado del jcomboBox planillas es gestoria o gastos 
     * @param evt 
     */
private void jButtonEliminarMovimientoCajaSiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarMovimientoCajaSiActionPerformed
    try {
        if (this.jComboBoxPlanillas.getSelectedItem().toString().equals("Gestoría")) {
            this.controlador.eliminarGestoria(this.datosGestoria.getElementAt(this.jTableGestoria.getSelectedRow()));
            this.actualizarGestoria(this.devolverFecha());
            this.actualizarTotalesCaja(this.devolverFecha(), this.jComboBoxPlanillas.getSelectedItem().toString());
        } else{ 
        if (this.jComboBoxPlanillas.getSelectedItem().toString().equals("Varios")) {
            this.controlador.eliminarVarios(this.datosVarios.getElementAt(this.jTableVarios.getSelectedRow()));
            this.actualizarVarios(this.devolverFecha());
            this.actualizarTotalesCaja(this.devolverFecha(), this.jComboBoxPlanillas.getSelectedItem().toString());
        } 
        else {
            if (this.jComboBoxPlanillas.getSelectedItem().toString().equals("Gastos")) {
                this.controlador.eliminarGastos(this.datosGastos.getElementAt(this.jTableGastos.getSelectedRow()));
                this.actualizarGastos(this.devolverFecha());
                this.actualizarTotalesCaja(this.devolverFecha(), this.jComboBoxPlanillas.getSelectedItem().toString());
            }
        }}
        this.jDialogCajaEliminarMovimiento.setVisible(false);
    }catch (DAOException ex) {
        this.mostrarError(ex);
    }
// TODO add your handling code here:
}//GEN-LAST:event_jButtonEliminarMovimientoCajaSiActionPerformed
    /**
     * Este metodo se ejecuta cuando se presiona el boton cancelar
     * del jdialog agregar movimeinto
     * @param evt 
     */
private void jButtonCancelarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarMovimientoActionPerformed
    this.jDialogAgregarMovimientoCaja.setVisible(false);        // TODO add your handling code here:}                                                          // TODO add your handling code here:
}//GEN-LAST:event_jButtonCancelarMovimientoActionPerformed
    /**
     * este metodo se ejecuta cuando se presiona no del jdialog eliminar moviemitno,
     * es decir cuando el usuario desea cancelar la eliminacion de un movimiento
     * @param evt 
     */
    private void jButtonEliminarMovimientoGestoriaNoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarMovimientoGestoriaNoActionPerformed
        this.jDialogCajaEliminarMovimiento.setVisible(false);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEliminarMovimientoGestoriaNoActionPerformed
    /**
     * este metodo se ejecuta cuando se prediona el boton aceptar del jdialog
     * advertencia caja, que se hace visible cuando se produjo algun tipo de error
     * @param evt 
     */
private void jButtonAdvertenciaCajaOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAdvertenciaCajaOkActionPerformed
    this.jDialogAdvertenciaCaja.setVisible(false); // TODO add your handling code here:
}//GEN-LAST:event_jButtonAdvertenciaCajaOkActionPerformed
    /**
     * este metodo se ejecuta cuando se presiona el jcomboBox planillas del panel
     * caja
     * @param evt 
     */
private void jComboBoxPlanillasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBoxPlanillasItemStateChanged
    switch (jComboBoxPlanillas.getSelectedIndex()) {
        case 0: //planilla completa
            this.jPanelGastos.setVisible(true);
            this.jPanelGestoria.setVisible(true);
            this.jPanelRepuestos.setVisible(true);
            this.jPanelServices.setVisible(true);
            this.jPanelMoto.setVisible(true);
            this.jPanelCajaChicaVarios.setVisible(true);
            this.jButtonEliminarMovimiento.setEnabled(false);
            this.jButtonAgregarMovimiento.setEnabled(true);
            this.jComboBoxAgregarMovimiento.setVisible(true);
            this.jComboBoxAgregarMovimiento.setSelectedItem("Gestoría");
            this.jLabelBuscarCajaChicaDetalle.setVisible(true);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(true);
            this.jLabelBuscarCajaChicaCliente.setVisible(true);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(true);
            break;
        case 1: //gestoria
            this.jPanelGestoria.setVisible(true);
            this.jPanelGastos.setVisible(false);
            this.jPanelRepuestos.setVisible(false);
            this.jPanelServices.setVisible(false);
            this.jPanelMoto.setVisible(false);
            this.jPanelCajaChicaVarios.setVisible(false);
            this.jButtonAgregarMovimiento.setEnabled(true);
            this.jButtonEliminarMovimiento.setEnabled(true);
            this.jComboBoxAgregarMovimiento.setSelectedItem("Gestoría");
            this.jComboBoxAgregarMovimiento.setVisible(false);
            this.jRadioButtonEgresoCaja.setVisible(true);
            this.jRadioButtonIngresoCaja.setVisible(true);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(false);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(false);
            break;
        case 2: //gastos
            this.jPanelGestoria.setVisible(false);
            this.jPanelGastos.setVisible(true);
            this.jPanelRepuestos.setVisible(false);
            this.jPanelServices.setVisible(false);
            this.jPanelMoto.setVisible(false);
            this.jPanelCajaChicaVarios.setVisible(false);
            this.jButtonAgregarMovimiento.setEnabled(true);
            this.jButtonEliminarMovimiento.setEnabled(true);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(true);
            this.jLabelBuscarCajaChicaDetalle.setVisible(true);
            this.jComboBoxAgregarMovimiento.setSelectedItem("Gastos");
            this.jComboBoxAgregarMovimiento.setVisible(false);
            this.jRadioButtonEgresoCaja.setVisible(false);
            this.jRadioButtonGastosGastosFijos.setVisible(true);
            this.jRadioButtonGastosGastosVarios.setVisible(true);
            this.jRadioButtonGastosSueldos.setVisible(true);
            this.jRadioButtonIngresoCaja.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(false);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(false);
            break;
         case 3: //varios
            this.jPanelGestoria.setVisible(false);
            this.jPanelGastos.setVisible(false);
            this.jPanelRepuestos.setVisible(false);
            this.jPanelServices.setVisible(false);
            this.jPanelMoto.setVisible(false);
            this.jPanelCajaChicaVarios.setVisible(true);
            this.jButtonAgregarMovimiento.setEnabled(true);
            this.jButtonEliminarMovimiento.setEnabled(true);
            this.jComboBoxAgregarMovimiento.setSelectedItem("Varios");
            this.jComboBoxAgregarMovimiento.setVisible(false);
            this.jRadioButtonEgresoCaja.setVisible(true);
            this.jRadioButtonIngresoCaja.setVisible(true);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(false);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(false);
            break;    
        case 4: // moto 
            this.jPanelGestoria.setVisible(false);
            this.jPanelGastos.setVisible(false);
            this.jPanelRepuestos.setVisible(false);
            this.jPanelServices.setVisible(false);
            this.jPanelMoto.setVisible(true);
            this.jPanelCajaChicaVarios.setVisible(false);
            this.jButtonAgregarMovimiento.setEnabled(false);
            this.jButtonEliminarMovimiento.setEnabled(false);
            this.jLabelBuscarCajaChicaDetalle.setVisible(false);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(true);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(true);
            break;
        case 5: //Repuestos
            this.jPanelGastos.setVisible(false);
            this.jPanelGestoria.setVisible(false);
            this.jPanelRepuestos.setVisible(true);
            this.jPanelServices.setVisible(false);
            this.jPanelMoto.setVisible(false);
            this.jPanelCajaChicaVarios.setVisible(false);
            this.jButtonAgregarMovimiento.setEnabled(false);
            this.jButtonEliminarMovimiento.setEnabled(false);
            this.jLabelBuscarCajaChicaDetalle.setVisible(false);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(true);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(true);
            break;
        case 6: //services
            this.jPanelGastos.setVisible(false);
            this.jPanelGestoria.setVisible(false);
            this.jPanelRepuestos.setVisible(false);
            this.jPanelServices.setVisible(true);
            this.jPanelMoto.setVisible(false);
            this.jPanelCajaChicaVarios.setVisible(false);
            this.jButtonAgregarMovimiento.setEnabled(false);
            this.jButtonEliminarMovimiento.setEnabled(false);
            this.jLabelBuscarCajaChicaDetalle.setVisible(false);
            this.jTextFieldBuscarCajaChicaDetalle.setVisible(false);
            this.jLabelBuscarCajaChicaCliente.setVisible(true);
            this.jTextFieldBuscarCajaChicaCliente.setVisible(true);
            break;

    }
    this.jPanelBuscarCajaChica.setVisible(true);
    // TODO add your handling code here:
}//GEN-LAST:event_jComboBoxPlanillasItemStateChanged
    /**
     * este metodo se ejecuta cuando se presiona el boton agregar movimiento
     * del panel caja, e inicializa lo jtexfield del jdialog agregarMoviimiento
     * @param evt 
     */
private void jButtonAgregarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAgregarMovimientoActionPerformed
    this.jTextFieldDescripCaja.setText(" ");
    this.jTextFieldImporteCaja.setText(null);
    this.jDialogAgregarMovimientoCaja.setVisible(true);
    this.buttonGroupEgresoIngreso.clearSelection();
    this.jComboBoxAgregarMovimientoActionPerformed(null);
    // TODO add your handling code here:
}//GEN-LAST:event_jButtonAgregarMovimientoActionPerformed
    /**
     * Este metodo se ejecuta cuando se presiona el boton eliminar movimiento del panel
     * caja, si esta seleccionado gestoria o gastos del jcomboBox planillas
     * @param evt 
     */
private void jButtonEliminarMovimientoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarMovimientoActionPerformed
    switch (jComboBoxPlanillas.getSelectedIndex()) {
        case 1: //gestoria 
            if (this.jTableGestoria.getSelectedRow() == -1) {
                this.jLabelAdvertenciaCaja.setText("Por favor, debe seleccionar el movimiento que desea eliminar.");
                this.jDialogAdvertenciaCaja.setVisible(true);
            } else {
                this.jDialogCajaEliminarMovimiento.setVisible(true);
            }
            break;
        case 2://Gastos
            if (this.jTableGastos.getSelectedRow() == -1) {
                this.jLabelAdvertenciaCaja.setText("Por favor, debe seleccionar el movimiento que desea eliminar.");
                this.jDialogAdvertenciaCaja.setVisible(true);
            } else {
                this.jDialogCajaEliminarMovimiento.setVisible(true);
            }
            break;
        case 3: //Varios 
            if (this.jTableVarios.getSelectedRow() == -1) {
                this.jLabelAdvertenciaCaja.setText("Por favor, debe seleccionar el movimiento que desea eliminar.");
                this.jDialogAdvertenciaCaja.setVisible(true);
            } else {
                this.jDialogCajaEliminarMovimiento.setVisible(true);
            }
            break;
    }
    // TODO add your handling code here:
}//GEN-LAST:event_jButtonEliminarMovimientoActionPerformed
    /**+
     * Este metodo actualiza el total de la tabla de entregas de motos
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     */
private void jLabelTotalMotoEntregaTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalMotoEntregaTablaPropertyChange
   this.actualizarTotalesCaja(this.devolverFecha(), "Motovehículo"); // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalMotoEntregaTablaPropertyChange
    /**
     * este metodo actualiza el total de la tabla de cuotas de motos
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     */
private void jLabelTotalMotoCuotaTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalMotoCuotaTablaPropertyChange
  this.actualizarTotalesCaja(this.devolverFecha(), "MotoCuota"); // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalMotoCuotaTablaPropertyChange
    /**
     * este metodo actuaiza el total de la tabla de service.
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     */
private void jLabelTotalServicesTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalServicesTablaPropertyChange
   this.actualizarTotalesCaja(this.devolverFecha(), "Services");  // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalServicesTablaPropertyChange
    /**
     * este metodo aactualiza el total de la tabla de repeustos
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     *//*    /**
     * este metodo actualiza el total de la tabla de gastos, y lo coloca en color rojo ya que es un gasto
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     */
private void jLabelTotalGastosTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalGastosTablaPropertyChange
    jLabelTotalGastosTabla.setForeground(Color.RED);
    this.actualizarTotalesCaja(this.devolverFecha(), "Gastos");
    // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalGastosTablaPropertyChange
    /**
     * este metodo actualiza el total de la tabla de gestori
     * el total que calcula es el total de la tabla correspondiente a la fecha que s ele pasa como parametro
     * @param evt 
     */
private void jLabelTotalGestoriaTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalGestoriaTablaPropertyChange
    try {
        this.actualizarTotalesCaja(this.devolverFecha(), "Gestoría");
        if ((this.controlador.totalGestoria(this.devolverFecha())) < 0.0) {// si el total el menor que cero colocarlo en rojo
            jLabelTotalGestoriaTabla.setForeground(Color.RED);
        } else {// sino colocarlo en negro
            jLabelTotalGestoriaTabla.setForeground(Color.BLACK);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalGestoriaTablaPropertyChange
    /**
     * este metodo se ejecuta cuando se presiona el jdatechooser y se cambia la fecha
     * lista todas las talas con la fecha correspondiente y actuliza los totales de las mismas
     * @param evt 
     */
private void jDateChooserFechaCajaChicaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jDateChooserFechaCajaChicaPropertyChange
    this.buscarCajaChica();
    this.actualizarTotalesCaja(this.devolverFecha(), "Gestoría");
    this.actualizarTotalesCaja(this.devolverFecha(), "Gastos");
    this.actualizarTotalesCaja(this.devolverFecha(),"Varios");
    this.actualizarTotalesCaja(this.devolverFecha(), "Repuestos");
    this.actualizarTotalesCaja(this.devolverFecha(), "Services");
    this.actualizarTotalesCaja(this.devolverFecha(), "Motovehículo");
    this.actualizarTotalesCaja(this.devolverFecha(), "MotoCuota");
    this.actualizarGestoria(this.devolverFecha());
    this.actualizarGastos(this.devolverFecha());
    this.actualizarVarios(this.devolverFecha());
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Repuestos");
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Services");
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Motovehículo");
    this.actualizarMotoCuota(this.devolverFecha());
    // TODO add your handling code here:
}//GEN-LAST:event_jDateChooserFechaCajaChicaPropertyChange
    /**
     * este metodo se ejecuta cuando se presiona el checkBox activar caja y cambia el
     * estado que se le pasa como paramtro a el metodo modificar estado caja chica buscar
     * @param evt 
     */    /**
     * este metodo se ejecuta cuando se escribe algo en el textField descripcion,
     * y realiza un busqueda de las descripciones de caja chica que contienen en descripcion
     * lo ingresado en ese textField
     * @param evt 
     */    /**
     * este metodo se ejecuta cuando se escribe algo en el textField detalle,
     * y realiza un busqueda de los detalles de caja chica que contienen en detalle
     * lo ingresado en ese textField
     * @param evt 
     */    /**
     * este metodo se ejecuta cuando se escribe algo en el textField cliente,
     * y realiza un busqueda de los clientes de caja chica que contienen en cliente
     * lo ingresado en ese textField
     * @param evt 
     */    /**
     * este metodo actuliza el total de gestoria del panel totales caja chica
     * @param evt 
     */
private void jLabelTotalGestoriaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalGestoriaPropertyChange
    try {
        java.sql.Date fecha = new java.sql.Date((new java.util.Date()).getTime());
        this.actualizarTotalesCaja(this.devolverFecha(), "Gestoría");
        if ((this.controlador.totalGestoria(fecha)) < 0.0)//si el valor es emnor que cero
        {//entonces colocar el jlabel en rojo
            jLabelTotalGestoria.setForeground(Color.RED);
        } else {
            jLabelTotalGestoria.setForeground(Color.BLACK);
        }//sino colocar el jlabel en negro

    } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalGestoriaPropertyChange
    /**
     * este metodo colocal la fecha actual en el label fecha caja de el panel totales caja
     * @param evt 
     */
private void jLabelFechaCajaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelFechaCajaPropertyChange
    java.sql.Date calendario = new java.sql.Date((new java.util.Date()).getTime());
    jLabelFechaCaja.setText(Fecha.formatearFecha(calendario));
    // TODO add your handling code here:
}//GEN-LAST:event_jLabelFechaCajaPropertyChange
  /**
     * este metodo calcula el total de la caja chica
     * @param evt 
     */
private void jLabelTotalCajaChicaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalCajaChicaPropertyChange
    try {
        java.sql.Date fecha = new java.sql.Date((new java.util.Date()).getTime());
        double total = this.controlador.totalGastos(fecha) + this.controlador.totalGestoria(fecha) + this.controlador.totalVarios(fecha) + this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Repuestos") +
                + this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Services") +
                + this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Motovehículo") + this.controlador.totalCuotaMotoServicesRepuesto(fecha, "Motovehículo")+ this.controlador.totalCuotaMotoServicesRepuesto(fecha, "Repuestos")+ this.controlador.totalCuotaMotoServicesRepuesto(fecha, "Services");
        this.jLabelTotalCajaChica.setText("$ " + String.valueOf(total));
        if (total < 0.0)//si el total el menor que cero
        {
            jLabelTotalCajaChica.setForeground(Color.RED);   //colocar el label en rojo
        } else {
            jLabelTotalCajaChica.setForeground(Color.BLACK);
        }//sino colocar el label total en negro

    } catch (DAOException ex) {
        this.mostrarError(ex);
    }       // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalCajaChicaPropertyChange
    /**
     * este metodo actualiza el valor del total de respuestos del panel totales caja
     * @param evt 
     */
private void jLabelTotalRepuestosPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalRepuestosPropertyChange
    this.actualizarTotalesCaja(this.devolverFecha(), "Repuestos"); // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalRepuestosPropertyChange
    /**
     * ste metodo actualiza el valor del total de services del panel totales caja
     * @param evt 
     */
private void jLabelTotalServicesPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalServicesPropertyChange
    this.actualizarTotalesCaja(this.devolverFecha(), "Services"); // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalServicesPropertyChange
    /**
     * ste metodo actualiza el valor del total de entregas de motos del panel totales caja
     * @param evt 
     */
private void jLabelTotalMotoEntregaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalMotoEntregaPropertyChange
    this.actualizarTotalesCaja(this.devolverFecha(), "Motovehículo");  // TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalMotoEntregaPropertyChange
    /**
     * ste metodo actualiza el valor del total de cuotas de motos del panel totales caja
     * @param evt 
     */
private void jLabelTotalMotoCuotaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalMotoCuotaPropertyChange
    this.actualizarTotalesCaja(this.devolverFecha(), "MotoCuota");
// TODO add your handling code here:
}//GEN-LAST:event_jLabelTotalMotoCuotaPropertyChange
/*
private void inf2aÃ±osActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_inf2aÃ±osActionPerformed
    this.buscarInformeClienteMes();
    this.buscarInformesClieMesResumen();
}//GEN-LAST:event_inf2aÃ±osActionPerformed

private void infAÃ±osActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_infAÃ±osActionPerformed
    this.buscarInformeDiario();
    this.hacerInformeResumido();
}//GEN-LAST:event_infAÃ±osActionPerformed
*/
private void infMesesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_infMesesActionPerformed
    this.buscarInformeDiario();
    this.hacerInformeResumido();
}//GEN-LAST:event_infMesesActionPerformed

private void impInfDiario1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_impInfDiario1ActionPerformed
        try {
            this.jTableInf1.print();
        } catch (PrinterException ex) {
            Logger.getLogger(Ventana.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_impInfDiario1ActionPerformed

private void impInfMes1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_impInfMes1ActionPerformed
        try {
            this.jTableInfCli1.print();
        } catch (PrinterException ex) {
            Logger.getLogger(Ventana.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_impInfMes1ActionPerformed

private void impInfMes2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_impInfMes2ActionPerformed
try {
            this.jTableInfCli2.print();
        } catch (PrinterException ex) {
            Logger.getLogger(Ventana.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_impInfMes2ActionPerformed

private void impInfDiario2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_impInfDiario2ActionPerformed
try {
            this.jTableinf2.print();
        } catch (PrinterException ex) {
            Logger.getLogger(Ventana.class.getName()).log(Level.SEVERE, null, ex);
        }
}//GEN-LAST:event_impInfDiario2ActionPerformed

private void jButtonCancelarVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarVentaActionPerformed
    this.jPanelDatosVenta.setVisible(false);
}//GEN-LAST:event_jButtonCancelarVentaActionPerformed

private void jButtonAceptarNotificacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarNotificacionActionPerformed
    this.jDialogNotificacion.setVisible(false);
}//GEN-LAST:event_jButtonAceptarNotificacionActionPerformed

private void jTextFieldImporteServiceVentaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldImporteServiceVentaFocusLost
    if (jComboBoxTipoPagoVenta.getSelectedIndex() == 0) {
        this.jTextFieldEntregaPagoVenta.setText(this.jTextFieldImporteServiceVenta.getText());
    }
}//GEN-LAST:event_jTextFieldImporteServiceVentaFocusLost

private void jTextFieldImporteRespuestoVentaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldImporteRespuestoVentaFocusLost
    if (jComboBoxTipoPagoVenta.getSelectedIndex() == 0) {
        this.jTextFieldEntregaPagoVenta.setText(this.jTextFieldImporteRespuestoVenta.getText());
    }
}//GEN-LAST:event_jTextFieldImporteRespuestoVentaFocusLost

private void jTextFieldPrecioMotoVentaFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPrecioMotoVentaFocusLost
    if (jComboBoxTipoPagoVenta.getSelectedIndex() == 0) {
        this.jTextFieldEntregaPagoVenta.setText(this.jTextFieldPrecioMotoVenta.getText());
    }
}//GEN-LAST:event_jTextFieldPrecioMotoVentaFocusLost

    private void jLabelTotalGastosPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalGastosPropertyChange
  jLabelTotalGastos.setForeground(Color.RED);
    this.actualizarTotalesCaja(this.devolverFecha(), "Gastos");
        // TODO add your handling code here:
    }//GEN-LAST:event_jLabelTotalGastosPropertyChange

private void jTableMorososMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableMorososMouseClicked
    try {
        this.jPanelBuscarVentas.setVisible(false);
        this.jPanelDatosVenta.setVisible(true);
        this.jButtonGuardarNuevaVenta.setVisible(false);
        this.jButtonGuardarCambiosVenta.setVisible(true);
        this.jButtonEliminarVenta.setVisible(true);
        this.mostrarVenta(this.controlador.getVenta(this.datosMorosos.getElementAt(this.jTableMorosos.getSelectedRow())));
        this.jTabbedPane1.setSelectedIndex(0);
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }    
}//GEN-LAST:event_jTableMorososMouseClicked

private void jButtonImprimirVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirVentaActionPerformed
    ImprimirVenta impresora = new ImprimirVenta();
    impresora.mostrarVentaImpresion(this.venta);
    impresora.imprimir();
    impresora.dispose();
}//GEN-LAST:event_jButtonImprimirVentaActionPerformed

private void jButtonImprimirCuotasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirCuotasActionPerformed
        try {
            this.jTableCuotasVenta.print();
        } catch (PrinterException ex) {
            this.mostrarError(ex);
        }
}//GEN-LAST:event_jButtonImprimirCuotasActionPerformed
        
        private void jButtonImprimirReciboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirReciboActionPerformed
            this.jDialogImprimirCuota.setVisible(false);
            ImprimirRecibo imprimirRecibo = new ImprimirRecibo(this.jPanelImprimirRecibo);
            imprimirRecibo.imprimir();
            
            // TODO add your handling code here:
    }//GEN-LAST:event_jButtonImprimirReciboActionPerformed

    private void jButtonCancelarImprimirCuotaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarImprimirCuotaActionPerformed
        this.jDialogImprimirCuota.setVisible(false);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonCancelarImprimirCuotaActionPerformed

    private void jButtonImprimirReciboAgregarPagoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirReciboAgregarPagoActionPerformed
        this.jPanelVerPagos.setVisible(true);
        this.jPanelAgregarPago.setVisible(false);
        java.sql.Date calendario = new java.sql.Date((new java.util.Date()).getTime());
        this.jTextFieldFechaReciboImprimirCuota.setText(Fecha.formatearFecha(calendario));
        this.jTextFieldIdentificadorCuota.setText("Nº Cuota: " + numeroCuota);
        this.jTextFieldNombreClienteImprimirCuota.setText(nombreCliente);
       // this.jTextFieldNumeroCuotaImprimirCuota.setText(numeroCuota);
        this.jTextFieldMontoReciboImprimirCuota.setText("$ " + montoEntrega + " .-");
        this.jTextFieldCantidadEnPalabras.setText("");
        this.jTextFieldEnEfectivoImprimirCuota.setText("");
        this.jTextFieldChequeImprimirCuota.setText("");
        this.jTextFieldNumeroChequeImprimirCuota.setText("");
        this.jTextFieldBancoImprimirCuota.setText("");
        this.jDialogImprimirCuota.setVisible(true);// TODO add your handling code here:
    }//GEN-LAST:event_jButtonImprimirReciboAgregarPagoActionPerformed

    private void jButtonEntregaImprimirReciboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEntregaImprimirReciboActionPerformed
        java.sql.Date calendario = new java.sql.Date((new java.util.Date()).getTime());
        this.jTextFieldFechaReciboImprimirCuota.setText(Fecha.formatearFecha(calendario));
        this.jTextFieldIdentificadorCuota.setText("Entrega/Contado");
      //  this.jTextFieldNumeroCuotaImprimirCuota.setText("");
        if(this.venta.getCliente()==null){
        this.jTextFieldNombreClienteImprimirCuota.setText("");}
        else{
            this.jTextFieldNombreClienteImprimirCuota.setText(this.venta.getCliente().getNombre());
        }
        this.jTextFieldMontoReciboImprimirCuota.setText("$ " +Double.toString(this.venta.getEntrega()) + " .-");
        this.jTextFieldCantidadEnPalabras.setText("");
        this.jTextFieldEnEfectivoImprimirCuota.setText("");
        this.jTextFieldChequeImprimirCuota.setText("");
        this.jTextFieldNumeroChequeImprimirCuota.setText("");
        this.jTextFieldBancoImprimirCuota.setText("");
        this.jDialogImprimirCuota.setVisible(true);        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonEntregaImprimirReciboActionPerformed

    private void jLabelTotalVariosPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalVariosPropertyChange
  try {
        java.sql.Date fecha = new java.sql.Date((new java.util.Date()).getTime());
        this.actualizarTotalesCaja(this.devolverFecha(), "Varios");
        if ((this.controlador.totalVarios(fecha)) < 0.0)//si el valor es emnor que cero
        {//entonces colocar el jlabel en rojo
            jLabelTotalVarios.setForeground(Color.RED);
        } else {
            jLabelTotalVarios.setForeground(Color.BLACK);
        }//sino colocar el jlabel en negro

    } catch (DAOException ex) {
        this.mostrarError(ex);
    }        // TODO add your handling code here:
    }//GEN-LAST:event_jLabelTotalVariosPropertyChange

    private void jLabelTotalVariosTablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jLabelTotalVariosTablaPropertyChange
  try {
        this.actualizarTotalesCaja(this.devolverFecha(), "Varios");
        if ((this.controlador.totalVarios(this.devolverFecha())) < 0.0) {// si el total el menor que cero colocarlo en rojo
            jLabelTotalVariosTabla.setForeground(Color.RED);
        } else {// sino colocarlo en negro
            jLabelTotalVariosTabla.setForeground(Color.BLACK);
        }
    } catch (DAOException ex) {
        this.mostrarError(ex);
    }        // TODO add your handling code here:
    }//GEN-LAST:event_jLabelTotalVariosTablaPropertyChange

    private void inf2aniosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_inf2aniosActionPerformed
        this.buscarInformeClienteMes();
        this.buscarInformesClieMesResumen();        // TODO add your handling code here:
    }//GEN-LAST:event_inf2aniosActionPerformed

    private void infAniosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_infAniosActionPerformed
        this.buscarInformeDiario();
        this.hacerInformeResumido();        // TODO add your handling code here:
    }//GEN-LAST:event_infAniosActionPerformed

private void jButtonEliminarVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarVentaActionPerformed
    this.jDialogEliminarVenta.setVisible(true);
}//GEN-LAST:event_jButtonEliminarVentaActionPerformed

private void jButtonConfirmarEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarEliminarActionPerformed
    this.jDialogEliminarVenta.setVisible(false);
    try {
        this.controlador.eliminarVenta(this.venta);
        this.jPanelDatosVenta.setVisible(false);
        this.mostrarNotificacion("Venta eliminada correctamente");
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } 
}//GEN-LAST:event_jButtonConfirmarEliminarActionPerformed

private void jButtonCancelarEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarEliminarActionPerformed
    this.jDialogEliminarVenta.setVisible(false);
}//GEN-LAST:event_jButtonCancelarEliminarActionPerformed

private void jButtonConfirmarEliminarPlanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonConfirmarEliminarPlanActionPerformed
    this.jDialogEliminarPlan.setVisible(false);
    try {
        this.controlador.eliminarPlan(this.datosPlanes.getElementAt(this.jTablePlanesVenta.getSelectedRow()));
        this.mostrarVenta(this.controlador.getVenta(this.venta.getId()));
    } catch (DAOException ex) {
        this.mostrarError(ex);
    } 
}//GEN-LAST:event_jButtonConfirmarEliminarPlanActionPerformed

private void jButtonCancelarEliminarPlanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarEliminarPlanActionPerformed
    this.jDialogEliminarPlan.setVisible(false);
}//GEN-LAST:event_jButtonCancelarEliminarPlanActionPerformed

private void jButtonEliminarPlanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEliminarPlanActionPerformed
    if (this.jTablePlanesVenta.getSelectedRow() == -1) {
        this.mostrarNotificacion("Debe seleccionar un plan");
    } else {
        this.jDialogEliminarPlan.setVisible(true);
    } 
}//GEN-LAST:event_jButtonEliminarPlanActionPerformed

private void jTextFieldInteresAgregarPagoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldInteresAgregarPagoFocusLost
    try {
        if (this.jComboBoxInteresAgregarPago.getSelectedIndex() == 1) {
            this.jTextFieldMontoAgregarPago.setText(Double.toString(Double.parseDouble(this.jTextFieldMontoAdeudadoAgregarPago.getText()) + Double.parseDouble(this.jTextFieldMontoAdeudadoAgregarPago.getText()) * Double.parseDouble(this.jTextFieldInteresAgregarPago.getText()) / 100));
        }
    } catch (NumberFormatException numberFormatException) {
        UIException ex = new UIException("El interés a aplicar debe ser un número", numberFormatException);
        this.mostrarError(ex);
    }
}//GEN-LAST:event_jTextFieldInteresAgregarPagoFocusLost

private void jButtonImprimirComprobanteVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirComprobanteVentaActionPerformed
    Calendar calendario = Calendar.getInstance();
    java.util.Date hoy = new java.util.Date();
    calendario.setTime(hoy);
    String fecha = "Concepción del Uruguay, " + Integer.toString(calendario.get(Calendar.DAY_OF_MONTH)) + " de ";
    switch (calendario.get(Calendar.MONTH)) {
            case 0:
                fecha = fecha + "ENERO";
                break;
            case 1:
                fecha = fecha + "FEBRERO";
                break;
            case 2:
                fecha = fecha + "MARZO";
                break;
            case 3:
                fecha = fecha + "ABRIL";
                break;
            case 4:
                fecha = fecha + "MAYO";
                break;
            case 5:
                fecha = fecha + "JUNIO";
                break;
            case 6:
                fecha = fecha + "JULIO";
                break;
            case 7:
                fecha = fecha + "AGOSTO";
                break;
            case 8:
                fecha = fecha + "SEPTIEMBRE";
                break;
            case 9:
                fecha = fecha + "OCTUBRE";
                break;
            case 10:
                fecha = fecha + "NOVIEMBRE";
                break;
            case 11:
                fecha = fecha + "DICIEMBRE";
                break;
        }
    fecha = fecha + " de " + Integer.toString(calendario.get(Calendar.YEAR));
    this.jTextFieldFechaComprobante.setText(fecha);
    this.jTextAreaTextoComprobante.setText("Por la presente dejamos constancia de que el COMPRADOR (cuyos datos figuran \n"
            + "a continuación) ha adquirido un " + this.jComboBoxTipoVenta.getSelectedItem().toString().toUpperCase() + " " + this.venta.getMoto().getKm().toUpperCase() + " en esta concesionaria \n"
            + "situada en calle Sansóni 2097 Entre Ríos. La documentación correspondiente está \n"
            + "a su entera disposición para efectuar los trámites de patentamiento y/o \n"
            + "transferencia a cargo del comprador");
    this.jTextFieldNombreComprobante.setText(this.venta.getCliente().getNombre());
    this.jTextFieldDomicilioComprobante.setText(this.venta.getCliente().getDireccion());
    this.jTextFieldDNIComprobante.setText(Integer.toString(this.venta.getCliente().getDni()));
    this.jTextFieldFechaPorpietarioComprobante.setText(Fecha.formatearFecha(this.venta.getCliente().getFechanacimiento()));
    this.jTextFieldTelefonoComprobante.setText(this.venta.getCliente().getTelefono());
    this.jTextFieldMarcaMovehiculo.setText(this.venta.getMoto().getMarca());
    this.jTextFieldModeloMovehiculo.setText(this.venta.getMoto().getModelo());
    this.jTextFieldMotorMovehiculo.setText(this.venta.getMoto().getNumMotor());
    this.jTextFieldChasisMovehiculo.setText(this.venta.getMoto().getNumChasis());
    this.jTextFieldColorMovehiculo.setText(this.venta.getMoto().getColor());
    this.jDialogImprimirComprobante.setVisible(true);
}//GEN-LAST:event_jButtonImprimirComprobanteVentaActionPerformed

private void jButtonCancelarImprimirComprobanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarImprimirComprobanteActionPerformed
    this.jDialogImprimirComprobante.setVisible(false);
}//GEN-LAST:event_jButtonCancelarImprimirComprobanteActionPerformed

private void jButtonImprimirComprobanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonImprimirComprobanteActionPerformed
    this.jDialogImprimirComprobante.setVisible(false);
    ImprimirRecibo imprimirRecibo = new ImprimirRecibo(this.jPanelImprimirComprobante);
    imprimirRecibo.imprimir();
}//GEN-LAST:event_jButtonImprimirComprobanteActionPerformed

    private void jButtonBuscarCajaChicaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarCajaChicaActionPerformed
        
        this.buscarCajaChica();
        
    }//GEN-LAST:event_jButtonBuscarCajaChicaActionPerformed

    private void jButtonDeshacerBusquedaCajaChicaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaCajaChicaActionPerformed
       this.modificarEstadoCajaChicaBuscar(false);
       this.actualizarGastos(this.devolverFecha());
       this.actualizarGestoria(this.devolverFecha());
       this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Repuestos");
       this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Services");
       this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Motovehículo");
       this.actualizarMotoCuota(this.devolverFecha());
       this.actualizarVarios(this.devolverFecha());
       this.modificarEstadoCajaChicaBuscar(true);
    }//GEN-LAST:event_jButtonDeshacerBusquedaCajaChicaActionPerformed

/**
 * Este método se ejecuta cuandos e presiona el bo´ton buscar en la ventana de
 * ventas, realiza la búsqueda en la base de datos
 * @param evt 
 */
private void jButtonBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarActionPerformed
     this.buscarVentas();
     this.jLabelTotalVentas.setText("Cantidad: " + jTableBuscarVenta.getRowCount());
}//GEN-LAST:event_jButtonBuscarActionPerformed

/**
 * Este método se ejecuta cuando se presiona el botón deshacer búsqueda, muestra
 * en el listado de ventas todas las ventas
 * @param evt 
 */
private void jButtonDeshacerBusquedaVentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaVentaActionPerformed
    this.modificarEstadoVentasBuscar();
    this.actualizarVenta();
    this.jLabelTotalVentas.setText("Cantidad: " + jTableBuscarVenta.getRowCount());
}//GEN-LAST:event_jButtonDeshacerBusquedaVentaActionPerformed
/**
 * Este metodo deshace la busqueda que se realizo 
 * en la Agenda
 * @param evt 
 */
    private void jButtonDeshacerBusquedaAgendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDeshacerBusquedaAgendaActionPerformed
        this.modificarEstadoAgendaBuscar(false);
        this.actualizarAgenda();
        this.modificarEstadoAgendaBuscar(true);
    }//GEN-LAST:event_jButtonDeshacerBusquedaAgendaActionPerformed
    /**
     * Realiza una busqueda en la agenda 
     * @param evt 
     */
    private void jButtonBuscarAgendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscarAgendaActionPerformed
        this.buscarAgenda();
    }//GEN-LAST:event_jButtonBuscarAgendaActionPerformed

    private void jTextFieldAgendaBuscarObservacionesKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAgendaBuscarObservacionesKeyReleased

        this.buscarAgenda();     }//GEN-LAST:event_jTextFieldAgendaBuscarObservacionesKeyReleased

    private void jTextFieldAgendaBuscarEmailKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAgendaBuscarEmailKeyReleased

        this.buscarAgenda();     }//GEN-LAST:event_jTextFieldAgendaBuscarEmailKeyReleased

    private void jTextFieldAgendaBuscarTelefonoKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAgendaBuscarTelefonoKeyReleased

        this.buscarAgenda();     }//GEN-LAST:event_jTextFieldAgendaBuscarTelefonoKeyReleased

    private void jTextFieldAgendaBuscarDireccionKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldAgendaBuscarDireccionKeyReleased

        this.buscarAgenda();     }//GEN-LAST:event_jTextFieldAgendaBuscarDireccionKeyReleased

private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        switch (this.jTabbedPane1.getSelectedIndex()) {
        case 0: //Ventas
            
            break;
        case 1: //Agenda
            this.actualizarAgenda();
            break;
        case 2: //Caja Chica
            this.actualizarCajaChica();
            break;
        case 3: //Morosos
            this.actualizarMorosos();
            break;
        case 4: //Cliente meses
            this.buscarInformeClienteMes();
            this.buscarInformesClieMesResumen();
            break;
        case 5: //Diario
            this.buscarInformeDiario();
            this.hacerInformeResumido();
            break;
    }
}//GEN-LAST:event_jTabbedPane1StateChanged

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                Ventana.getVentana().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton AgendaAgregarContacto;
    private javax.swing.JButton AgendaEliminarContacto;
    private javax.swing.JButton AgregarAgendaAceptar;
    private javax.swing.JTextField AgregarAgendaApellido;
    private javax.swing.JButton AgregarAgendaCancelar;
    private javax.swing.JTextField AgregarAgendaDireccion;
    private javax.swing.JTextField AgregarAgendaEmail;
    private javax.swing.JTextField AgregarAgendaNombre;
    private javax.swing.JTextField AgregarAgendaObsevaciones;
    private javax.swing.JTextField AgregarAgendaTelefono;
    private javax.swing.ButtonGroup buttonGroupEgresoIngreso;
    private javax.swing.ButtonGroup buttonGroupGastos;
    private javax.swing.JButton impInfDiario1;
    private javax.swing.JButton impInfDiario2;
    private javax.swing.JButton impInfMes1;
    private javax.swing.JButton impInfMes2;
    private javax.swing.JComboBox inf2anios;
    private javax.swing.JComboBox infAnios;
    private javax.swing.JComboBox infMeses;
    private javax.swing.JButton jButtonAceptarError;
    private javax.swing.JButton jButtonAceptarErrorConexionBD;
    private javax.swing.JButton jButtonAceptarMovimiento;
    private javax.swing.JButton jButtonAceptarNotificacion;
    private javax.swing.JButton jButtonAdvertenciaAceptar;
    private javax.swing.JButton jButtonAdvertenciaCajaOk;
    private javax.swing.JButton jButtonAgregarMovimiento;
    private javax.swing.JButton jButtonAgregarPagosVerPagos;
    private javax.swing.JButton jButtonBuscar;
    private javax.swing.JButton jButtonBuscarAgenda;
    private javax.swing.JButton jButtonBuscarCajaChica;
    private javax.swing.JButton jButtonBuscarVenta;
    private javax.swing.JButton jButtonCambiarPlanVenta;
    private javax.swing.JButton jButtonCancelarAgregarPago;
    private javax.swing.JButton jButtonCancelarEliminar;
    private javax.swing.JButton jButtonCancelarEliminarPlan;
    private javax.swing.JButton jButtonCancelarImprimirComprobante;
    private javax.swing.JButton jButtonCancelarImprimirCuota;
    private javax.swing.JButton jButtonCancelarMovimiento;
    private javax.swing.JButton jButtonCancelarPlan;
    private javax.swing.JButton jButtonCancelarVenta;
    private javax.swing.JButton jButtonCerrarVerPagos;
    private javax.swing.JButton jButtonConfirmarAgregarPago;
    private javax.swing.JButton jButtonConfirmarEliminar;
    private javax.swing.JButton jButtonConfirmarEliminarPlan;
    private javax.swing.JButton jButtonConfirmarPlan;
    private javax.swing.JButton jButtonDeshacerBusquedaAgenda;
    private javax.swing.JButton jButtonDeshacerBusquedaCajaChica;
    private javax.swing.JButton jButtonDeshacerBusquedaVenta;
    private javax.swing.JButton jButtonEliminarContactoNo;
    private javax.swing.JButton jButtonEliminarContactoSi;
    private javax.swing.JButton jButtonEliminarMovimiento;
    private javax.swing.JButton jButtonEliminarMovimientoCajaSi;
    private javax.swing.JButton jButtonEliminarMovimientoGestoriaNo;
    private javax.swing.JButton jButtonEliminarPlan;
    private javax.swing.JButton jButtonEliminarVenta;
    private javax.swing.JButton jButtonEntregaImprimirRecibo;
    private javax.swing.JButton jButtonGuardarCambiosVenta;
    private javax.swing.JButton jButtonGuardarNuevaVenta;
    private javax.swing.JButton jButtonImprimirComprobante;
    private javax.swing.JButton jButtonImprimirComprobanteVenta;
    private javax.swing.JButton jButtonImprimirCuotas;
    private javax.swing.JButton jButtonImprimirRecibo;
    private javax.swing.JButton jButtonImprimirReciboAgregarPago;
    private javax.swing.JButton jButtonImprimirVenta;
    private javax.swing.JButton jButtonNuevaVenta;
    private javax.swing.JComboBox jComboBoxAgregarMovimiento;
    private javax.swing.JComboBox jComboBoxInteresAgregarPago;
    private javax.swing.JComboBox jComboBoxPlanillas;
    private javax.swing.JComboBox jComboBoxTipoPagoVenta;
    private javax.swing.JComboBox jComboBoxTipoVenta;
    private com.toedter.calendar.JDateChooser jDateChooserFechaCajaChica;
    private com.toedter.calendar.JDateChooser jDateChooserFechaNacClienteVenta;
    private com.toedter.calendar.JDateChooser jDateChooserFechaNacGaranteVenta1;
    private com.toedter.calendar.JDateChooser jDateChooserFechaNacGaranteVenta2;
    private com.toedter.calendar.JDateChooser jDateChooserFechaPago;
    private com.toedter.calendar.JDateChooser jDateChooserFechaPrimerVencimiento;
    private com.toedter.calendar.JDateChooser jDateChooserFechaVencimientoPlan;
    private com.toedter.calendar.JDateChooser jDateChooserFechaVenta;
    private javax.swing.JDialog jDialogAdvertenciaCaja;
    private javax.swing.JDialog jDialogAgendaAdvertencia;
    private javax.swing.JDialog jDialogAgendaAgregarContacto;
    private javax.swing.JDialog jDialogAgendaEliminarContacto;
    private javax.swing.JDialog jDialogAgregarMovimientoCaja;
    private javax.swing.JDialog jDialogAgregarPago;
    private javax.swing.JDialog jDialogCajaEliminarMovimiento;
    private javax.swing.JDialog jDialogCambiarPlan;
    private javax.swing.JDialog jDialogEliminarPlan;
    private javax.swing.JDialog jDialogEliminarVenta;
    private javax.swing.JDialog jDialogError;
    private javax.swing.JDialog jDialogErrorConexionBD;
    private javax.swing.JDialog jDialogImprimirComprobante;
    private javax.swing.JDialog jDialogImprimirCuota;
    private javax.swing.JDialog jDialogNotificacion;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabelAdvertenciaAceptar;
    private javax.swing.JLabel jLabelAdvertenciaCaja;
    private javax.swing.JLabel jLabelAdvertenciaEliminarContacto;
    private javax.swing.JLabel jLabelAgregarAgendaApellido;
    private javax.swing.JLabel jLabelAgregarAgendaDireccion;
    private javax.swing.JLabel jLabelAgregarAgendaEmail;
    private javax.swing.JLabel jLabelAgregarAgendaNombre;
    private javax.swing.JLabel jLabelAgregarAgendaObsevaciones;
    private javax.swing.JLabel jLabelAgregarAgendaTelefono;
    private javax.swing.JLabel jLabelApellidoAgenda;
    private javax.swing.JLabel jLabelAyNClienteVenta;
    private javax.swing.JLabel jLabelAyNGaranteVenta1;
    private javax.swing.JLabel jLabelAyNGaranteVenta2;
    private javax.swing.JLabel jLabelBancoImprimirCuota;
    private javax.swing.JLabel jLabelBuscarCajaChicaCliente;
    private javax.swing.JLabel jLabelBuscarCajaChicaDescripcion;
    private javax.swing.JLabel jLabelBuscarCajaChicaDetalle;
    private javax.swing.JLabel jLabelChequeImprimirCuota;
    private javax.swing.JLabel jLabelCilindradasMotoVenta;
    private javax.swing.JLabel jLabelClienteBuscarVenta;
    private javax.swing.JLabel jLabelColorMotoVenta;
    private javax.swing.JLabel jLabelConfirmarEliminar;
    private javax.swing.JLabel jLabelConfirmarEliminarPlan;
    private javax.swing.JLabel jLabelConyugueClienteVenta;
    private javax.swing.JLabel jLabelConyugueGaranteVenta1;
    private javax.swing.JLabel jLabelConyugueGaranteVenta2;
    private javax.swing.JLabel jLabelCuotasPagoVenta;
    private javax.swing.JLabel jLabelCuotasVenta;
    private javax.swing.JLabel jLabelDNIClienteVenta;
    private javax.swing.JLabel jLabelDNIGaranteVenta1;
    private javax.swing.JLabel jLabelDNIGaranteVenta2;
    private javax.swing.JLabel jLabelDatosClienteVenta;
    private javax.swing.JLabel jLabelDatosGaranteVenta1;
    private javax.swing.JLabel jLabelDatosGaranteVenta2;
    private javax.swing.JLabel jLabelDatosMotovehiculo;
    private javax.swing.JLabel jLabelDatosPagoAgregarPago;
    private javax.swing.JLabel jLabelDatosPagoVenta;
    private javax.swing.JLabel jLabelDatosPlan;
    private javax.swing.JLabel jLabelDatosRespuestoVenta;
    private javax.swing.JLabel jLabelDatosServiceVenta;
    private javax.swing.JLabel jLabelDatosVenta;
    private javax.swing.JLabel jLabelDescripCaja;
    private javax.swing.JLabel jLabelDescripcionRespuestoVenta;
    private javax.swing.JLabel jLabelDescripcionServiceVenta;
    private javax.swing.JLabel jLabelDescripciónAgregarPago;
    private javax.swing.JLabel jLabelDirActualClienteVenta;
    private javax.swing.JLabel jLabelDirActualGaranteVenta1;
    private javax.swing.JLabel jLabelDirActualGaranteVenta2;
    private javax.swing.JLabel jLabelDireccionAgenda;
    private javax.swing.JLabel jLabelDireccionClienteVenta;
    private javax.swing.JLabel jLabelDireccionGaranteVenta1;
    private javax.swing.JLabel jLabelDireccionGaranteVenta2;
    private javax.swing.JLabel jLabelDireccionImprimirCuota;
    private javax.swing.JLabel jLabelEfectivoImprimirCuota;
    private javax.swing.JLabel jLabelEmailAgenda;
    private javax.swing.JLabel jLabelEmailClienteVenta;
    private javax.swing.JLabel jLabelEmailGaranteVenta1;
    private javax.swing.JLabel jLabelEmailGaranteVenta2;
    private javax.swing.JLabel jLabelEntregaPagoVenta;
    private javax.swing.JLabel jLabelErrorConexionBD1;
    private javax.swing.JLabel jLabelErrorConexionBD2;
    private javax.swing.JLabel jLabelFechaBuscarVenta;
    private javax.swing.JLabel jLabelFechaCaja;
    private javax.swing.JLabel jLabelFechaCajaBuscar;
    private javax.swing.JLabel jLabelFechaCajaTexto;
    private javax.swing.JLabel jLabelFechaCuotaAgregarPago;
    private javax.swing.JLabel jLabelFechaImprimirCuota;
    private javax.swing.JLabel jLabelFechaNacClienteVenta;
    private javax.swing.JLabel jLabelFechaNacGaranteVenta1;
    private javax.swing.JLabel jLabelFechaNacGaranteVenta2;
    private javax.swing.JLabel jLabelFechaPagoAgregarPago;
    private javax.swing.JLabel jLabelFechaPrimerVencimiento;
    private javax.swing.JLabel jLabelFechaVencimientoPlan;
    private javax.swing.JLabel jLabelFechaVenta;
    private javax.swing.JLabel jLabelGestoriaEliminarMovimiento;
    private javax.swing.JLabel jLabelImporteCaja;
    private javax.swing.JLabel jLabelImporteRespuestoVenta;
    private javax.swing.JLabel jLabelImporteServiceVenta;
    private javax.swing.JLabel jLabelIniciarNumeroCuota;
    private javax.swing.JLabel jLabelInteresAgregarPago;
    private javax.swing.JLabel jLabelInteresAgregarPago1;
    private javax.swing.JLabel jLabelKmMotoVenta;
    private javax.swing.JLabel jLabelLecunaMotosImprimir;
    private javax.swing.JLabel jLabelLecunaMotosImprimirCuota;
    private javax.swing.JLabel jLabelLocalidadClienteVenta;
    private javax.swing.JLabel jLabelLocalidadGaranteVenta1;
    private javax.swing.JLabel jLabelLocalidadGaranteVenta2;
    private javax.swing.JLabel jLabelMarcaMotoVenta;
    private javax.swing.JLabel jLabelModeloAnoMotoVenta;
    private javax.swing.JLabel jLabelModeloMotoVenta;
    private javax.swing.JLabel jLabelMontoAdeudadoAgregarPago;
    private javax.swing.JLabel jLabelMontoAgregarPago;
    private javax.swing.JLabel jLabelMontoCuotasPlan;
    private javax.swing.JLabel jLabelNombreAgenda;
    private javax.swing.JLabel jLabelNotificacion;
    private javax.swing.JLabel jLabelNroChasisMotoVenta;
    private javax.swing.JLabel jLabelNroMotorMotoVenta;
    private javax.swing.JLabel jLabelNumeroCuotaVerPagos;
    private javax.swing.JLabel jLabelNumeroCuotasPlan;
    private javax.swing.JLabel jLabelNumerochequeImprimirCuota;
    private javax.swing.JLabel jLabelObservacionesAgenda;
    private javax.swing.JLabel jLabelObservacionesClienteVenta;
    private javax.swing.JLabel jLabelObservacionesGaranteVenta1;
    private javax.swing.JLabel jLabelObservacionesGaranteVenta2;
    private javax.swing.JLabel jLabelObservacionesMotoVenta;
    private javax.swing.JLabel jLabelPanelMotoCuota;
    private javax.swing.JLabel jLabelPanelMotoEntrega;
    private javax.swing.JLabel jLabelPesosImprimirCuota;
    private javax.swing.JLabel jLabelPlanPagoVenta;
    private javax.swing.JLabel jLabelPlanesVenta;
    private javax.swing.JLabel jLabelPrecioMotoVenta;
    private javax.swing.JLabel jLabelRecibideImprimirCuota;
    private javax.swing.JLabel jLabelRotuloRecibo;
    private javax.swing.JLabel jLabelSonImprimirCuota;
    private javax.swing.JLabel jLabelTelefono2ClienteVenta;
    private javax.swing.JLabel jLabelTelefono2GaranteVenta1;
    private javax.swing.JLabel jLabelTelefono2GaranteVenta2;
    private javax.swing.JLabel jLabelTelefonoAgenda;
    private javax.swing.JLabel jLabelTelefonoClienteVenta;
    private javax.swing.JLabel jLabelTelefonoGaranteVenta1;
    private javax.swing.JLabel jLabelTelefonoGaranteVenta2;
    private javax.swing.JLabel jLabelTelefonoImprimirCuota;
    private javax.swing.JLabel jLabelTextoError;
    private javax.swing.JLabel jLabelTextoToalCaja;
    private javax.swing.JLabel jLabelTextoTotalGastos;
    private javax.swing.JLabel jLabelTextoTotalGastosTabla;
    private javax.swing.JLabel jLabelTextoTotalGestoriaTabla;
    private javax.swing.JLabel jLabelTextoTotalGestoría;
    private javax.swing.JLabel jLabelTextoTotalMotoCuota;
    private javax.swing.JLabel jLabelTextoTotalMotoCuotaTabla;
    private javax.swing.JLabel jLabelTextoTotalMotoEntrega;
    private javax.swing.JLabel jLabelTextoTotalMotoEntregaTabla;
    private javax.swing.JLabel jLabelTextoTotalRepuestos;
    private javax.swing.JLabel jLabelTextoTotalRepuestosTabla;
    private javax.swing.JLabel jLabelTextoTotalServices;
    private javax.swing.JLabel jLabelTextoTotalServicesTabla;
    private javax.swing.JLabel jLabelTextoTotalVarios;
    private javax.swing.JLabel jLabelTextoVarios;
    private javax.swing.JLabel jLabelTipoPagoVenta;
    private javax.swing.JLabel jLabelTipoVenta;
    private javax.swing.JLabel jLabelTotalCajaChica;
    private javax.swing.JLabel jLabelTotalGastos;
    private javax.swing.JLabel jLabelTotalGastosTabla;
    private javax.swing.JLabel jLabelTotalGestoria;
    private javax.swing.JLabel jLabelTotalGestoriaTabla;
    private javax.swing.JLabel jLabelTotalMotoCuota;
    private javax.swing.JLabel jLabelTotalMotoCuotaTabla;
    private javax.swing.JLabel jLabelTotalMotoEntrega;
    private javax.swing.JLabel jLabelTotalMotoEntregaTabla;
    private javax.swing.JLabel jLabelTotalRepuestos;
    private javax.swing.JLabel jLabelTotalRepuestosTabla;
    private javax.swing.JLabel jLabelTotalServices;
    private javax.swing.JLabel jLabelTotalServicesTabla;
    private javax.swing.JLabel jLabelTotalVarios;
    private javax.swing.JLabel jLabelTotalVariosTabla;
    private javax.swing.JLabel jLabelTotalVentas;
    private javax.swing.JLabel jLabelTrabajoClienteVenta;
    private javax.swing.JLabel jLabelTrabajoGaranteVenta1;
    private javax.swing.JLabel jLabelTrabajoGaranteVenta2;
    private javax.swing.JLabel jLabelVerPagosCuotaNumero;
    private javax.swing.JLabel jLabelWarning;
    private javax.swing.JLabel jLabelciudadImprimirCuota;
    private javax.swing.JLabel jLabeloscarehijosImprimirCuota;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanelAgenda;
    private javax.swing.JPanel jPanelAgregarPago;
    private javax.swing.JPanel jPanelBuscarAgenda;
    private javax.swing.JPanel jPanelBuscarCajaChica;
    private javax.swing.JPanel jPanelBuscarVenta;
    private javax.swing.JPanel jPanelBuscarVentas;
    private javax.swing.JPanel jPanelCajaChica;
    private javax.swing.JPanel jPanelCajaChicaVarios;
    private javax.swing.JPanel jPanelCuotasVenta;
    private javax.swing.JPanel jPanelDatosCliente;
    private javax.swing.JPanel jPanelDatosDeVenta;
    private javax.swing.JPanel jPanelDatosGarante1;
    private javax.swing.JPanel jPanelDatosGarante3;
    private javax.swing.JPanel jPanelDatosMotovehiculo;
    private javax.swing.JPanel jPanelDatosPago;
    private javax.swing.JPanel jPanelDatosPagoCuotas;
    private javax.swing.JPanel jPanelDatosRepuesto;
    private javax.swing.JPanel jPanelDatosService;
    private javax.swing.JPanel jPanelDatosVenta;
    private javax.swing.JPanel jPanelGastos;
    private javax.swing.JPanel jPanelGestoria;
    private javax.swing.JPanel jPanelImprimir;
    private javax.swing.JPanel jPanelImprimirComprobante;
    private javax.swing.JPanel jPanelImprimirRecibo;
    private javax.swing.JPanel jPanelInformeClientes;
    private javax.swing.JPanel jPanelInformeDiario;
    private javax.swing.JPanel jPanelMorosos;
    private javax.swing.JPanel jPanelMoto;
    private javax.swing.JPanel jPanelRepuestos;
    private javax.swing.JPanel jPanelServices;
    private javax.swing.JPanel jPanelTotalesCajaChica;
    private javax.swing.JPanel jPanelVentas;
    private javax.swing.JPanel jPanelVerPagos;
    private javax.swing.JRadioButton jRadioButtonEgresoCaja;
    private javax.swing.JRadioButton jRadioButtonGastosGastosFijos;
    private javax.swing.JRadioButton jRadioButtonGastosGastosVarios;
    private javax.swing.JRadioButton jRadioButtonGastosSueldos;
    private javax.swing.JRadioButton jRadioButtonIngresoCaja;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane19;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPaneAgendaTabla;
    private javax.swing.JScrollPane jScrollPaneBuscarVenta;
    private javax.swing.JScrollPane jScrollPaneCuotasVenta;
    private javax.swing.JScrollPane jScrollPaneDescripciónAgregarPago;
    private javax.swing.JScrollPane jScrollPaneImprimirComprobante;
    private javax.swing.JScrollPane jScrollPaneInf1;
    private javax.swing.JScrollPane jScrollPaneInf2;
    private javax.swing.JScrollPane jScrollPaneInfClie1;
    private javax.swing.JScrollPane jScrollPaneInformeClientes;
    private javax.swing.JScrollPane jScrollPaneInformeDiario;
    private javax.swing.JScrollPane jScrollPanePagosVerPagos;
    private javax.swing.JScrollPane jScrollPanePlanesVenta;
    private javax.swing.JScrollPane jScrollPaneVentas;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPaneDatosGarantes;
    private javax.swing.JTable jTableAgenda;
    private javax.swing.JTable jTableBuscarVenta;
    private javax.swing.JTable jTableCuotasVenta;
    private javax.swing.JTable jTableGastos;
    private javax.swing.JTable jTableGestoria;
    private javax.swing.JTable jTableInf1;
    private javax.swing.JTable jTableInfCli1;
    private javax.swing.JTable jTableInfCli2;
    private javax.swing.JTable jTableMorosos;
    private javax.swing.JTable jTableMotoCuota;
    private javax.swing.JTable jTableMotoEntrega;
    private javax.swing.JTable jTablePagosVerPagos;
    private javax.swing.JTable jTablePlanesVenta;
    private javax.swing.JTable jTableRepuestos;
    private javax.swing.JTable jTableServices;
    private javax.swing.JTable jTableVarios;
    private javax.swing.JTable jTableinf2;
    private javax.swing.JTextArea jTextAreaDescripciónAgregarPago;
    private javax.swing.JTextArea jTextAreaTextoComprobante;
    private javax.swing.JTextField jTextFieldAgendaBuscarApellido;
    private javax.swing.JTextField jTextFieldAgendaBuscarDireccion;
    private javax.swing.JTextField jTextFieldAgendaBuscarEmail;
    private javax.swing.JTextField jTextFieldAgendaBuscarNombre;
    private javax.swing.JTextField jTextFieldAgendaBuscarObservaciones;
    private javax.swing.JTextField jTextFieldAgendaBuscarTelefono;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante1;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante2;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante3;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante4;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante5;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante6;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante7;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante8;
    private javax.swing.JTextField jTextFieldApellidoynombreComprobante9;
    private javax.swing.JTextField jTextFieldBancoImprimirCuota;
    private javax.swing.JTextField jTextFieldBuscarCajaChicaCliente;
    private javax.swing.JTextField jTextFieldBuscarCajaChicaDescripcion;
    private javax.swing.JTextField jTextFieldBuscarCajaChicaDetalle;
    private javax.swing.JTextField jTextFieldCantidadEnPalabras;
    private javax.swing.JTextField jTextFieldChasisMovehiculo;
    private javax.swing.JTextField jTextFieldChequeImprimirCuota;
    private javax.swing.JTextField jTextFieldCilindradasMotoVenta;
    private javax.swing.JTextField jTextFieldClienteBuscarVenta;
    private javax.swing.JTextField jTextFieldColorMotoVenta;
    private javax.swing.JTextField jTextFieldColorMovehiculo;
    private javax.swing.JTextField jTextFieldConyugeClienteVenta;
    private javax.swing.JTextField jTextFieldConyugeGaranteVenta1;
    private javax.swing.JTextField jTextFieldConyugeGaranteVenta2;
    private javax.swing.JTextField jTextFieldCuotasPagoVenta;
    private javax.swing.JTextField jTextFieldDNIClienteVenta;
    private javax.swing.JTextField jTextFieldDNIComprobante;
    private javax.swing.JTextField jTextFieldDNIGaranteVenta1;
    private javax.swing.JTextField jTextFieldDNIGaranteVenta2;
    private javax.swing.JTextField jTextFieldDescripCaja;
    private javax.swing.JTextField jTextFieldDescripcionRespuestoVenta;
    private javax.swing.JTextField jTextFieldDescripcionServiceVenta;
    private javax.swing.JTextField jTextFieldDirActualClienteVenta;
    private javax.swing.JTextField jTextFieldDirActualGaranteVenta1;
    private javax.swing.JTextField jTextFieldDirActualGaranteVenta2;
    private javax.swing.JTextField jTextFieldDirClienteVenta;
    private javax.swing.JTextField jTextFieldDirGaranteVenta1;
    private javax.swing.JTextField jTextFieldDirGaranteVenta2;
    private javax.swing.JTextField jTextFieldDomicilioComprobante;
    private javax.swing.JTextField jTextFieldEmailClienteVenta;
    private javax.swing.JTextField jTextFieldEmailGaranteVenta1;
    private javax.swing.JTextField jTextFieldEmailGaranteVenta2;
    private javax.swing.JTextField jTextFieldEnEfectivoImprimirCuota;
    private javax.swing.JTextField jTextFieldEntregaPagoVenta;
    private javax.swing.JTextField jTextFieldFechaBuscarVenta;
    private javax.swing.JTextField jTextFieldFechaComprobante;
    private javax.swing.JTextField jTextFieldFechaCuotaAgregarPago;
    private javax.swing.JTextField jTextFieldFechaPorpietarioComprobante;
    private javax.swing.JTextField jTextFieldFechaReciboImprimirCuota;
    private javax.swing.JTextField jTextFieldIdentificadorCuota;
    private javax.swing.JTextField jTextFieldImporteCaja;
    private javax.swing.JTextField jTextFieldImporteRespuestoVenta;
    private javax.swing.JTextField jTextFieldImporteServiceVenta;
    private javax.swing.JTextField jTextFieldIniciarNumeroCuota;
    private javax.swing.JTextField jTextFieldInteresAgregarPago;
    private javax.swing.JTextField jTextFieldKmMotoVenta;
    private javax.swing.JTextField jTextFieldLocalidadClienteVenta;
    private javax.swing.JTextField jTextFieldLocalidadGaranteVenta1;
    private javax.swing.JTextField jTextFieldLocalidadGaranteVenta2;
    private javax.swing.JTextField jTextFieldMarcaMotoVenta;
    private javax.swing.JTextField jTextFieldMarcaMovehiculo;
    private javax.swing.JTextField jTextFieldModeloAnoMotoVenta;
    private javax.swing.JTextField jTextFieldModeloMotoVenta;
    private javax.swing.JTextField jTextFieldModeloMovehiculo;
    private javax.swing.JTextField jTextFieldMontoAdeudadoAgregarPago;
    private javax.swing.JTextField jTextFieldMontoAgregarPago;
    private javax.swing.JTextField jTextFieldMontoCuotasPlan;
    private javax.swing.JTextField jTextFieldMontoReciboImprimirCuota;
    private javax.swing.JTextField jTextFieldMotorMovehiculo;
    private javax.swing.JTextField jTextFieldNombreClienteImprimirCuota;
    private javax.swing.JTextField jTextFieldNombreClienteVenta;
    private javax.swing.JTextField jTextFieldNombreComprobante;
    private javax.swing.JTextField jTextFieldNombreGaranteVenta1;
    private javax.swing.JTextField jTextFieldNombreGaranteVenta2;
    private javax.swing.JTextField jTextFieldNroChasisMotoVenta;
    private javax.swing.JTextField jTextFieldNroMotorMotoVenta;
    private javax.swing.JTextField jTextFieldNumeroChequeImprimirCuota;
    private javax.swing.JTextField jTextFieldNumeroCuotasPlan;
    private javax.swing.JTextField jTextFieldObservacionesClienteVenta;
    private javax.swing.JTextField jTextFieldObservacionesGaranteVenta1;
    private javax.swing.JTextField jTextFieldObservacionesGaranteVenta2;
    private javax.swing.JTextField jTextFieldObservacionesMotoVenta;
    private javax.swing.JTextField jTextFieldPlanPagoVenta;
    private javax.swing.JTextField jTextFieldPrecioMotoVenta;
    private javax.swing.JTextField jTextFieldTelefono2ClienteVenta;
    private javax.swing.JTextField jTextFieldTelefono2GaranteVenta1;
    private javax.swing.JTextField jTextFieldTelefono2GaranteVenta2;
    private javax.swing.JTextField jTextFieldTelefonoClienteVenta;
    private javax.swing.JTextField jTextFieldTelefonoComprobante;
    private javax.swing.JTextField jTextFieldTelefonoGaranteVenta1;
    private javax.swing.JTextField jTextFieldTelefonoGaranteVenta2;
    private javax.swing.JTextField jTextFieldTituloComprobante;
    private javax.swing.JTextField jTextFieldTituloPorpietarioComprobante;
    private javax.swing.JTextField jTextFieldTituloPorpietarioComprobante1;
    private javax.swing.JTextField jTextFieldTituloPorpietarioComprobante2;
    private javax.swing.JTextField jTextFieldTituloPorpietarioComprobante3;
    private javax.swing.JTextField jTextFieldTrabajoClienteVenta;
    private javax.swing.JTextField jTextFieldTrabajoGaranteVenta1;
    private javax.swing.JTextField jTextFieldTrabajoGaranteVenta2;
    private javax.swing.JLabel selAño;
    private javax.swing.JLabel selAño2;
    private javax.swing.JLabel selMes;
    private javax.swing.JLabel titInfDet;
    private javax.swing.JLabel titInfDet2;
    private javax.swing.JLabel titInfRes;
    private javax.swing.JLabel titInfRes2;
    // End of variables declaration//GEN-END:variables
    AgendaTableModel datosAgenda = new AgendaTableModel();
    VentaTableModel datosVenta = new VentaTableModel();
    CuotasTableModel datosCuotas = new CuotasTableModel();
    PagosTableModel datosPagos = new PagosTableModel();
    PlanTableModel datosPlanes = new PlanTableModel();
    GestoriaTableModel datosGestoria = new GestoriaTableModel();
    VariosCajaChicaTableModel datosVarios = new VariosCajaChicaTableModel();
    GastosTableModel datosGastos = new GastosTableModel();
    RepuestosTableModel datosRepuestos = new RepuestosTableModel();
    ServicesTableModel datosServices = new ServicesTableModel();
    MotoEntregaTableModel datosMotoEntrega = new MotoEntregaTableModel();
    MotoCuotaTableModel datosMotoCuota = new MotoCuotaTableModel();
    MorososTableModel datosMorosos = new MorososTableModel();
    PagosMesTableModel datosPagosMes = new PagosMesTableModel();
    PagosMesTableModel datosPagosMesResumido = new PagosMesTableModel();
    InfoClientesTableModel infoClienteMes = new InfoClientesTableModel();
    InfoClientesTableModel infoClienteMesResumido = new InfoClientesTableModel();
    private Fachada controlador = new Fachada();
    private static Ventana ventana = null;
    private PersonaDTO clienteVenta;
    private PersonaDTO garanteVenta1;
    private PersonaDTO garanteVenta2;
    private VentaDTO venta;
    private MotoDTO motoVenta;
    private PlanDTO planVenta;
    private CuotaDTO cuota;

    /**
     * Este método actualiza la agenda con la informaciÃ³n de la base de datos
     */
    private void actualizarAgenda() {
        try {
            this.datosAgenda.setData(this.controlador.listarAgenda());
            this.jTableAgenda.updateUI();
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este mÃ©todo actualiza la agenda con la informaciÃ³n de la base de datos
     * que coincide con los criterios de búsqueda ingresados
     */
    private void buscarAgenda() {
        try {
            AgendaDTO agenda = new AgendaDTO(this.jTextFieldAgendaBuscarNombre.getText(), this.jTextFieldAgendaBuscarApellido.getText(), this.jTextFieldAgendaBuscarDireccion.getText(), this.jTextFieldAgendaBuscarTelefono.getText(), this.jTextFieldAgendaBuscarEmail.getText(), this.jTextFieldAgendaBuscarObservaciones.getText());
            this.datosAgenda.setData(this.controlador.buscarAgenda(agenda));
            this.jTableAgenda.updateUI();
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este mensaje es la implementaciÃ³n del patrÃ³n Singleton.
     * @return objeto de la clase Ventana
     */
    public static Ventana getVentana() {
        if (ventana == null) {
            ventana = new Ventana();
        }
        return ventana;
    }

    /**
     * Este mÃ©todo actualiza la base de datos con los datos modificados en la
     * tabla de la agenda
     * @param agenda 
     */
    public void actualizarAgendaBD(AgendaDTO agenda) {
        try {
            this.controlador.actualizarAgenda(agenda);
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de la agenda
     * @param estado nuevo estado de los campos del panel
     */
    public void modificarEstadoAgendaBuscar(boolean estado) {
        this.jTextFieldAgendaBuscarNombre.setText("");
        this.jTextFieldAgendaBuscarApellido.setText("");
        this.jTextFieldAgendaBuscarDireccion.setText("");
        this.jTextFieldAgendaBuscarTelefono.setText("");
        this.jTextFieldAgendaBuscarEmail.setText("");
        this.jTextFieldAgendaBuscarObservaciones.setText("");
        this.jTextFieldAgendaBuscarNombre.setEditable(estado);
        this.jTextFieldAgendaBuscarApellido.setEditable(estado);
        this.jTextFieldAgendaBuscarDireccion.setEditable(estado);
        this.jTextFieldAgendaBuscarTelefono.setEditable(estado);
        this.jTextFieldAgendaBuscarEmail.setEditable(estado);
        this.jTextFieldAgendaBuscarObservaciones.setEditable(estado);
    }

    /**
     * Este mÃ©todo permite mostrar un objeto persona en el cliente de la venta
     * @param cliente 
     */
    public void mostrarClienteVenta(PersonaDTO cliente) {
        this.clienteVenta = cliente;
        this.jTextFieldDNIClienteVenta.setText(this.obtenerDni(cliente.getDni()));
        this.jTextFieldNombreClienteVenta.setText(cliente.getNombre());
        this.nombreCliente=cliente.getNombre();
        this.jDateChooserFechaNacClienteVenta.setDate(cliente.getFechanacimiento());
        this.jTextFieldTrabajoClienteVenta.setText(cliente.getLugardetrabajo());
        this.jTextFieldDirClienteVenta.setText(cliente.getDireccion());
        this.jTextFieldTelefonoClienteVenta.setText(cliente.getTelefono());
        this.jTextFieldLocalidadClienteVenta.setText(cliente.getLocalidad());
        this.jTextFieldDirActualClienteVenta.setText(cliente.getDireccionactual());
        this.jTextFieldTelefono2ClienteVenta.setText(cliente.getTelefono2());
        this.jTextFieldEmailClienteVenta.setText(cliente.getEmail());
        this.jTextFieldConyugeClienteVenta.setText(cliente.getConyuge());
        this.jTextFieldObservacionesClienteVenta.setText(cliente.getObservaciones());
    }

    /**
     * Este mÃ©todo permite mostrar un objeto persona en el garante1 de la venta
     * @param garante1
     */
    public void mostrarGarante1Venta(PersonaDTO garante1) {
        this.garanteVenta1 = garante1;
        this.jTextFieldDNIGaranteVenta1.setText(this.obtenerDni(garante1.getDni()));
        this.jTextFieldNombreGaranteVenta1.setText(garante1.getNombre());
        this.jDateChooserFechaNacGaranteVenta1.setDate(garante1.getFechanacimiento());
        this.jTextFieldTrabajoGaranteVenta1.setText(garante1.getLugardetrabajo());
        this.jTextFieldDirGaranteVenta1.setText(garante1.getDireccion());
        this.jTextFieldTelefonoGaranteVenta1.setText(garante1.getTelefono());
        this.jTextFieldLocalidadGaranteVenta1.setText(garante1.getLocalidad());
        this.jTextFieldDirActualGaranteVenta1.setText(garante1.getDireccionactual());
        this.jTextFieldTelefono2GaranteVenta1.setText(garante1.getTelefono2());
        this.jTextFieldEmailGaranteVenta1.setText(garante1.getEmail());
        this.jTextFieldConyugeGaranteVenta1.setText(garante1.getConyuge());
        this.jTextFieldObservacionesGaranteVenta1.setText(garante1.getObservaciones());
    }

    /**
     * Este mÃ©todo permite mostrar un objeto persona en el garante2 de la venta
     * @param garante2
     */
    public void mostrarGarante2Venta(PersonaDTO garante2) {
        this.garanteVenta2 = garante2;
        this.jTextFieldDNIGaranteVenta2.setText(this.obtenerDni(garante2.getDni()));
        this.jTextFieldNombreGaranteVenta2.setText(garante2.getNombre());
        this.jDateChooserFechaNacGaranteVenta2.setDate(garante2.getFechanacimiento());
        this.jTextFieldTrabajoGaranteVenta2.setText(garante2.getLugardetrabajo());
        this.jTextFieldDirGaranteVenta2.setText(garante2.getDireccion());
        this.jTextFieldTelefonoGaranteVenta2.setText(garante2.getTelefono());
        this.jTextFieldLocalidadGaranteVenta2.setText(garante2.getLocalidad());
        this.jTextFieldDirActualGaranteVenta2.setText(garante2.getDireccionactual());
        this.jTextFieldTelefono2GaranteVenta2.setText(garante2.getTelefono2());
        this.jTextFieldEmailGaranteVenta2.setText(garante2.getEmail());
        this.jTextFieldConyugeGaranteVenta2.setText(garante2.getConyuge());
        this.jTextFieldObservacionesGaranteVenta2.setText(garante2.getObservaciones());
    }

    /**
     * Este mÃ©todo permite mostrar un objeto moto en la ventana de ventas
     * @param moto 
     */
    public void mostrarMotoVenta(MotoDTO moto) {
        this.motoVenta = moto;
        this.jTextFieldMarcaMotoVenta.setText(moto.getMarca());
        this.jTextFieldModeloMotoVenta.setText(moto.getModelo());
        this.jTextFieldCilindradasMotoVenta.setText(moto.getCilindrada());
        this.jTextFieldColorMotoVenta.setText(moto.getColor());
        this.jTextFieldKmMotoVenta.setText(moto.getKm());
        this.jTextFieldNroMotorMotoVenta.setText(moto.getNumMotor());
        this.jTextFieldNroChasisMotoVenta.setText(moto.getNumChasis());
        this.jTextFieldModeloAnoMotoVenta.setText(moto.getModeloAnio());
    }

    /**
     * Este mÃ©todo permite mostrar un objeto venta en la ventana de ventas
     * @param venta 
     */
    public void mostrarVenta(VentaDTO venta) {
        this.venta = venta;
        this.jDateChooserFechaVenta.setDate(venta.getFecha());
        this.jDateChooserFechaVenta.setEnabled(false);
        this.jTextFieldEntregaPagoVenta.setText(Double.toString(venta.getEntrega()));
        this.jComboBoxTipoVenta.setSelectedItem(venta.getTipo());
        this.jComboBoxTipoVenta.setEnabled(false);
        if (venta.getCliente() != null) {
            this.mostrarClienteVenta(venta.getCliente());
        }
        switch (jComboBoxTipoVenta.getSelectedIndex()) {
            case 0:
                if (venta.getMoto() != null) {
                    this.mostrarMotoVenta(venta.getMoto());
                }
                this.jTextFieldPrecioMotoVenta.setText(Double.toString(venta.getPrecio()));
                this.jTextFieldObservacionesMotoVenta.setText(venta.getDescripcion());
                break;
            case 1:
                this.jTextFieldImporteServiceVenta.setText(Double.toString(venta.getPrecio()));
                this.jTextFieldDescripcionServiceVenta.setText(venta.getDescripcion());
                break;
            case 2:
                this.jTextFieldImporteRespuestoVenta.setText(Double.toString(venta.getPrecio()));
                this.jTextFieldDescripcionRespuestoVenta.setText(venta.getDescripcion());
                break;
        }
        if (venta.getPlanes() != null && venta.getPlanes().size() > 0) {
            this.jComboBoxTipoPagoVenta.setSelectedIndex(1);
            if (venta.getGarante1() != null) {
                this.mostrarGarante1Venta(venta.getGarante1());
            }
            if (venta.getGarante2() != null) {
                this.mostrarGarante2Venta(venta.getGarante2());
            }
            this.mostrarPlanesVenta(venta.getPlanes());
            this.jPanelDatosPagoCuotas.setVisible(false);
            this.actualizarCuotas(this.venta.getPlanActivo().getCuotas());
            this.jPanelCuotasVenta.setVisible(true);
            this.jTextFieldEntregaPagoVenta.setEnabled(true);
        } else {
            this.jComboBoxTipoPagoVenta.setSelectedIndex(0);
            this.jPanelCuotasVenta.setVisible(false);
            this.jTextFieldEntregaPagoVenta.setEnabled(false);
        }
        this.jComboBoxTipoPagoVenta.setEnabled(false);
    }

    /**
     * Este mÃ©todo permite mostrar un objeto plan en la ventana de la venta
     * @param plan 
     */
    public void mostrarPlanVenta(PlanDTO plan) {
        this.planVenta = plan;
        this.jTextFieldPlanPagoVenta.setText(Integer.toString(plan.getNumCoutas()));
        this.jTextFieldCuotasPagoVenta.setText(Double.toString(plan.getMontoCoutas()));
        this.jDateChooserFechaPrimerVencimiento.setDate(plan.getFechaIncicio());
    }

    /**
     * Este mÃ©todo permite mostrar una lista de planes en la ventana de la venta
     * @param plan 
     */
    public void mostrarPlanesVenta(ArrayList<PlanDTO> planes) {
        this.datosPlanes.setData(planes);
        int seleccion = planes.size() - 1;
        this.jTablePlanesVenta.getSelectionModel().setSelectionInterval(seleccion, seleccion);
        this.jTablePlanesVenta.updateUI();
    }

    /**
     * Este mÃ©todo permite cargar los datos de un cliente que se estan viendo en
     * la ventana de ventas en this.clienteVenta
     * @throws UIException 
     */
    public void cargarClienteVenta() throws UIException {
        if (this.clienteVenta == null) {
            this.clienteVenta = new PersonaDTO();
        }
        try {
            this.clienteVenta.setDni(Integer.parseInt(this.jTextFieldDNIClienteVenta.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El dni del cliente debe ser un número", numberFormatException);
        }
        this.clienteVenta.setNombre(this.jTextFieldNombreClienteVenta.getText());
        try {
            this.clienteVenta.setFechanacimiento(Fecha.convertirASQL(this.jDateChooserFechaNacClienteVenta.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha de nacimiento del cliente es incorrecta");
        }
        this.clienteVenta.setLugardetrabajo(this.jTextFieldTrabajoClienteVenta.getText());
        this.clienteVenta.setDireccion(this.jTextFieldDirClienteVenta.getText());
        this.clienteVenta.setTelefono(this.jTextFieldTelefonoClienteVenta.getText());
        this.clienteVenta.setLocalidad(this.jTextFieldLocalidadClienteVenta.getText());
        this.clienteVenta.setDireccionactual(this.jTextFieldDirActualClienteVenta.getText());
        this.clienteVenta.setTelefono2(this.jTextFieldTelefono2ClienteVenta.getText());
        this.clienteVenta.setEmail(this.jTextFieldEmailClienteVenta.getText());
        this.clienteVenta.setConyuge(this.jTextFieldConyugeClienteVenta.getText());
        this.clienteVenta.setObservaciones(this.jTextFieldObservacionesClienteVenta.getText());
    }

    /**
     * Este mÃ©todo permite cargar los datos de un garante que se estan viendo en
     * la ventana de ventas en this.garanteVenta1
     * @throws UIException 
     */
    public void cargarGaranteVenta() throws UIException {
        if (this.garanteVenta1 == null) {
            this.garanteVenta1 = new PersonaDTO();
        }
        try {
            this.garanteVenta1.setDni(Integer.parseInt(this.jTextFieldDNIGaranteVenta1.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El dni del garante debe ser un número", numberFormatException);
        }
        this.garanteVenta1.setNombre(this.jTextFieldNombreGaranteVenta1.getText());
        try {
            this.garanteVenta1.setFechanacimiento(Fecha.convertirASQL(this.jDateChooserFechaNacGaranteVenta1.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha de nacimiento del garante 1 es incorrecta");
        }
        this.garanteVenta1.setLugardetrabajo(this.jTextFieldTrabajoGaranteVenta1.getText());
        this.garanteVenta1.setDireccion(this.jTextFieldDirGaranteVenta1.getText());
        this.garanteVenta1.setTelefono(this.jTextFieldTelefonoGaranteVenta1.getText());
        this.garanteVenta1.setLocalidad(this.jTextFieldLocalidadGaranteVenta1.getText());
        this.garanteVenta1.setDireccionactual(this.jTextFieldDirActualGaranteVenta1.getText());
        this.garanteVenta1.setTelefono2(this.jTextFieldTelefono2GaranteVenta1.getText());
        this.garanteVenta1.setEmail(this.jTextFieldEmailGaranteVenta1.getText());
        this.garanteVenta1.setConyuge(this.jTextFieldConyugeGaranteVenta1.getText());
        this.garanteVenta1.setObservaciones(this.jTextFieldObservacionesGaranteVenta1.getText());
    }

    /**
     * Este mÃ©todo permite cargar los datos de un garante que se estan viendo en
     * la ventana de ventas en this.garanteVenta2
     * @throws UIException 
     */
    public void cargarGaranteVenta2() throws UIException {
        if (this.garanteVenta2 == null) {
            this.garanteVenta2 = new PersonaDTO();
        }
        try {
            this.garanteVenta2.setDni(Integer.parseInt(this.jTextFieldDNIGaranteVenta2.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El dni del garante 2 debe ser un número", numberFormatException);
        }
        this.garanteVenta2.setNombre(this.jTextFieldNombreGaranteVenta2.getText());
        try {
            this.garanteVenta2.setFechanacimiento(Fecha.convertirASQL(this.jDateChooserFechaNacGaranteVenta2.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha de nacimiento del garante 2 es incorrecta");
        }
        this.garanteVenta2.setLugardetrabajo(this.jTextFieldTrabajoGaranteVenta2.getText());
        this.garanteVenta2.setDireccion(this.jTextFieldDirGaranteVenta2.getText());
        this.garanteVenta2.setTelefono(this.jTextFieldTelefonoGaranteVenta2.getText());
        this.garanteVenta2.setLocalidad(this.jTextFieldLocalidadGaranteVenta2.getText());
        this.garanteVenta2.setDireccionactual(this.jTextFieldDirActualGaranteVenta2.getText());
        this.garanteVenta2.setTelefono2(this.jTextFieldTelefono2GaranteVenta2.getText());
        this.garanteVenta2.setEmail(this.jTextFieldEmailGaranteVenta2.getText());
        this.garanteVenta2.setConyuge(this.jTextFieldConyugeGaranteVenta2.getText());
        this.garanteVenta2.setObservaciones(this.jTextFieldObservacionesGaranteVenta2.getText());
    }

    /**
     * Este mÃ©todo permite cargar los datos de una moto que se estan viendo en
     * la venta en this.motoVenta
     */
    public void cargarMotoVenta() {
        if (this.motoVenta == null) {
            this.motoVenta = new MotoDTO();
        }
        this.motoVenta.setMarca(this.jTextFieldMarcaMotoVenta.getText());
        this.motoVenta.setModelo(this.jTextFieldModeloMotoVenta.getText());
        this.motoVenta.setCilindrada(this.jTextFieldCilindradasMotoVenta.getText());
        this.motoVenta.setColor(this.jTextFieldColorMotoVenta.getText());
        this.motoVenta.setKm(this.jTextFieldKmMotoVenta.getText());
        this.motoVenta.setNumMotor(this.jTextFieldNroMotorMotoVenta.getText());
        this.motoVenta.setNumChasis(this.jTextFieldNroChasisMotoVenta.getText());
        this.motoVenta.setModeloAnio(this.jTextFieldModeloAnoMotoVenta.getText());
    }

    /**
     * Este mÃ©todo permite cargar los datos de un plan que se estan viendo en
     * la ventana de ventas en this.planVenta
     * @throws UIException 
     */
    public void cargarPlanVenta() throws UIException {
        try {
            this.planVenta.setNumCoutas(Integer.parseInt(this.jTextFieldPlanPagoVenta.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El número de cuotas debe ser un número", numberFormatException);
        }
        try {
            this.planVenta.setMontoCoutas(Double.parseDouble(this.jTextFieldCuotasPagoVenta.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El monto de las cuotas debe ser un número", numberFormatException);
        }
        try {
            this.planVenta.setFechaIncicio(Fecha.convertirASQL(this.jDateChooserFechaPrimerVencimiento.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha del vencimiento de la primera cuota del plan es incorrecta");
        }
        this.planVenta.setActivo(true);
    }

    /**
     * Este mÃ©todo permite cargar los datos de un plan que se estan viendo en
     * el dialog de cambiar plan en this.planVenta
     * @throws UIException 
     */
    public void cargarNuevoPlanVenta() throws UIException {
        if (this.planVenta == null) {
            this.planVenta = new PlanDTO();
        }
        try {
            this.planVenta.setNumCoutas(Integer.parseInt(this.jTextFieldNumeroCuotasPlan.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El número de cuotas debe ser un número", numberFormatException);
        }
        try {
            this.planVenta.setMontoCoutas(Double.parseDouble(this.jTextFieldMontoCuotasPlan.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El monto de las cuotas debe ser un número", numberFormatException);
        }
        try {
            this.planVenta.setFechaIncicio(Fecha.convertirASQL(this.jDateChooserFechaVencimientoPlan.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha del primer vencimiento es incorrecta");
        }       
        this.planVenta.setActivo(true);
    }

    /**
     * Este mÃ©todo permite cargar los datos de una venta que se estan viendo en
     * la ventana de ventas en this.venta
     * @throws UIException 
     */
    public void cargarVenta() throws UIException {
        try {
            this.venta.setFecha(Fecha.convertirASQL(this.jDateChooserFechaVenta.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha de la venta es incorrecta");
        }
        this.venta.setTipo(this.jComboBoxTipoVenta.getSelectedItem().toString());
        this.cargarClienteVenta();
        this.venta.setCliente(this.clienteVenta);
        switch (jComboBoxTipoVenta.getSelectedIndex()) {
            case 0:
                this.cargarMotoVenta();
                this.venta.setMoto(this.motoVenta);
                try {
                    this.venta.setPrecio(Double.parseDouble(this.jTextFieldPrecioMotoVenta.getText()));
                } catch (NumberFormatException numberFormatException) {
                    throw new UIException("El precio de la moto debe ser un número");
                }
                this.venta.setDescripcion(this.jTextFieldObservacionesMotoVenta.getText());
                break;
            case 1:
                try {
                    this.venta.setPrecio(Double.parseDouble(this.jTextFieldImporteServiceVenta.getText()));
                } catch (NumberFormatException numberFormatException) {
                    throw new UIException("El precio del servicio debe ser un número");
                }
                this.venta.setDescripcion(this.jTextFieldDescripcionServiceVenta.getText());
                break;
            case 2:
                try {
                    this.venta.setPrecio(Double.parseDouble(this.jTextFieldImporteRespuestoVenta.getText()));
                } catch (NumberFormatException numberFormatException) {
                    throw new UIException("El precio del respuesto debe ser un número");
                }
                this.venta.setDescripcion(this.jTextFieldDescripcionRespuestoVenta.getText());
                break;
        }
        try {
            this.venta.setEntrega(Double.parseDouble(this.jTextFieldEntregaPagoVenta.getText()));
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El valor de la entrega debe ser un número");
        }
        if (jComboBoxTipoPagoVenta.getSelectedIndex() != 0) {
            this.cargarGaranteVenta();
            this.venta.setGarante1(this.garanteVenta1);
            if (!this.jTextFieldDNIGaranteVenta2.getText().equalsIgnoreCase("")) {
                this.cargarGaranteVenta2();
                this.venta.setGarante2(this.garanteVenta2);
            }
            if(jComboBoxTipoPagoVenta.isEnabled()){
                this.cargarPlanVenta();
                this.venta.setPlan(this.planVenta);
            }            
        }
    }

    /**
     * Este mÃ©todo devuelve el dni ingresado en int en String si es distinto
     * de 0, en caso de ser 0 devuelve null
     * @param dni
     * @return 
     */
    public String obtenerDni(int dni) {
        if (dni == 0) {
            return null;
        } else {
            return Integer.toString(dni);
        }
    }

    /**
     * Este mÃ©todo actualiza las ventas con la informaciÃ³n de la base de datos
     */
    private void actualizarVenta() {
        try {
            this.datosVenta.setData(this.controlador.listarVenta2());
            this.jTableBuscarVenta.updateUI();
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Cambia el estado de todos los campos que se encuentran en el panel
     * buscar de las ventas
     * @param estado nuevo estado de los campos de búsqueda
     */
    private void modificarEstadoVentasBuscar() {
        this.jTextFieldFechaBuscarVenta.setText("");
        this.jTextFieldClienteBuscarVenta.setText("");
    }

    /**
     * Este mÃ©todo actualiza la busqueda de las ventas con la informaciÃ³n de la 
     * base de datos que coincide con los criterios de búsqueda ingresados
     */
    private void buscarVentas() {
        try {
//            this.datosVenta.setData(this.controlador.buscarVenta(this.jTextFieldFechaBuscarVenta.getText().toLowerCase(), this.jTextFieldClienteBuscarVenta.getText().toLowerCase(), this.jTextFieldDescripcionBuscarVenta.getText().toLowerCase(), this.jTextFieldTipoBuscarVenta.getText().toLowerCase()));
            this.datosVenta.setData(this.controlador.buscarVenta2(this.jTextFieldFechaBuscarVenta.getText().toLowerCase(), this.jTextFieldClienteBuscarVenta.getText().toLowerCase()));
            this.jTableBuscarVenta.updateUI();
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este mÃ©todo actualiza el listado de las cuotas con la informaciÃ³n que se 
     * le pasa como parÃ¡metro
     * @param cuotas listado de cuotas a mostrar en pantalla
     */
    private void actualizarCuotas(ArrayList<CuotaDTO> cuotas) {
        this.datosCuotas.setData(cuotas);
        this.jTableCuotasVenta.updateUI();
    }

    /**
     * Este mÃ©todo actualiza la base de datos con los datos modificados en la
     * tabla de pagos
     * @param pago 
     */
    void actualizarPagoBD(PagoDTO pago) {
        try {
            this.controlador.actualizarPago(pago);
            this.actualizarCuotas(this.venta.getPlan().getCuotas());
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    /**
     * Este mÃ©todo permite testear la conexiÃ³n a la base de datos
     * @return true si fue exitosa, false en caso contrario
     */
    private boolean testearConexion() {
        try {
            this.controlador.testearConexion();
            return true;
        } catch (DAOException ex) {
            this.jDialogErrorConexionBD.setVisible(true);
            return false;
        }
    }

    /**
     * Este mÃ©todo permite mostrar el mensaje de una excepciÃ³n en la pantalla
     * @param e excepciÃ³n a ser mostrada en pantalla
     */
    private void mostrarError(Exception e) {
        if (e.getMessage() != null) {
            this.jLabelTextoError.setText(e.getMessage());
        } else {
            this.jLabelTextoError.setText("Se produjo un error, cierre el programa y compruebe la conexión al servidor");
        }
        this.jDialogError.setVisible(true);
    }

    /**
     * este metodo actualiza la tabla de repuestos, de services o de entregas de motos
     * con la fecha que se le pasa como parametro,con la informacion que se levanta de la base de datos
     * @param fecha
     * @param tipo 
     */
    private void actualizarRepuestosServicesMotoEntrega(Date fecha, String tipo) {
        try {
            if (tipo.equals("Repuestos")) {
                this.datosRepuestos.setData(this.controlador.listarServicesRepuestos(fecha, tipo));
                this.jTableRepuestos.updateUI();
            } else {
                if (tipo.equals("Services")) {
                    this.datosServices.setData(this.controlador.listarServicesRepuestos(fecha, tipo));
                    this.jTableServices.updateUI();
                } else {
                    this.datosMotoEntrega.setData(this.controlador.listarRespuestosServicesMotoEntrega(fecha, tipo));
                    this.jTableMotoEntrega.updateUI();
                }
            }
        } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    }

    /**
     * este metodo actuliza la tabla de cuotas de motos con la 
     * fecha que se le pasa como parametro, con la informacion que se levanta de la base de datos
     * @param fecha 
     */
    private void actualizarMotoCuota(Date fecha) {
        try {
            this.datosMotoCuota.setData(this.controlador.listarMotoCuota(fecha));
            this.jTableMotoCuota.updateUI();

        } catch (DAOException ex) {
        this.mostrarError(ex);
    }

    }

    /**
     * Este mÃ©todo actualiza los mivimientos de gestoria con la informaciÃ³n 
     * de la base de datos, con la fecha que se le pasa como parametro
     */
    private void actualizarGestoria(Date calendario){
        try {
            this.datosGestoria.setData(this.controlador.listarGestoria(calendario));
            this.jTableGestoria.updateUI();
        } catch (DAOException ex) {
       this.mostrarError(ex);
    }
    }
    /**
     * Este mÃ©todo actualiza los mivimientos de gestoria con la informaciÃ³n 
     * de la base de datos, con la fecha que se le pasa como parametro
     */
    private void actualizarVarios(Date calendario){
        try {
            this.datosVarios.setData(this.controlador.listarVarios(calendario));
            this.jTableVarios.updateUI();
        } catch (DAOException ex) {
       this.mostrarError(ex);
    }
    }

    /**
     * este metodo actuliza la tabla de gastos con la 
     * fecha que se le pasa como parametro, con la informacion que se levanta de la base de datos
     * @param calendario 
     */
    private void actualizarGastos(Date calendario) {
        try {
            this.datosGastos.setData(this.controlador.listarGastos(calendario));
            this.jTableGastos.updateUI();
        } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    }

    /**
     *este metodo realiza la busqueda sonbre la tabla que esta seleccionada en el
     * jcomboBox de planillas, si esta seleccionado planilla completa realiza la usqueda en todas las tablas
     */
    private void buscarCajaChica() {
        try {
            CajaChicaDTO cajaChica = new CajaChicaDTO(this.jTextFieldBuscarCajaChicaDescripcion.getText(), this.devolverFecha(), this.jTextFieldBuscarCajaChicaDetalle.getText());
            RepuestosServicesMotoEntregaDTO repuestosServicesMotoEntrega = new RepuestosServicesMotoEntregaDTO(this.jTextFieldBuscarCajaChicaCliente.getText(), this.jTextFieldBuscarCajaChicaDescripcion.getText(), this.devolverFecha());
            MotoCuotaDTO motoCuota = new MotoCuotaDTO(this.jTextFieldBuscarCajaChicaDescripcion.getText(),this.devolverFecha() ,this.jTextFieldBuscarCajaChicaCliente.getText());
            switch (jComboBoxPlanillas.getSelectedIndex()) {
                case 0:
                    this.datosGestoria.setData(this.controlador.buscarGestoria(cajaChica));
                    this.jTableGestoria.updateUI();
                    this.datosGastos.setData(this.controlador.buscarGastos(cajaChica));
                    this.jTableGastos.updateUI();
                    this.datosVarios.setData(this.controlador.buscarVarios(cajaChica));
                    this.jTableVarios.updateUI();
                    this.datosRepuestos.setData(this.controlador.buscarRepuestos(repuestosServicesMotoEntrega));
                    this.jTableRepuestos.updateUI();
                    this.datosServices.setData(this.controlador.buscarServices(repuestosServicesMotoEntrega));
                    this.jTableServices.updateUI();
                    this.datosMotoEntrega.setData(this.controlador.buscarMotoEntrega(repuestosServicesMotoEntrega));
                    this.jTableMotoEntrega.updateUI();
                    this.datosMotoCuota.setData(this.controlador.buscarMotoCuota(motoCuota));
                    this.jTableMotoCuota.updateUI();

                    break;
                case 1: //gestoria 
                    this.datosGestoria.setData(this.controlador.buscarGestoria(cajaChica));
                    this.jTableGestoria.updateUI();
                    break;
                case 2://Gastos
                    this.jTextFieldBuscarCajaChicaDetalle.setVisible(true);
                    this.jLabelBuscarCajaChicaDetalle.setVisible(true);
                    this.datosGastos.setData(this.controlador.buscarGastos(cajaChica));
                    this.jTableGastos.updateUI();
                    break;
                    
                case 3: //Varios 
                    this.datosVarios.setData(this.controlador.buscarVarios(cajaChica));
                    this.jTableVarios.updateUI();
                    break;
                case 4: //Moto
                    this.datosMotoEntrega.setData(this.controlador.buscarMotoEntrega(repuestosServicesMotoEntrega));
                    this.jTableMotoEntrega.updateUI();
                    this.datosMotoCuota.setData(this.controlador.buscarMotoCuota(motoCuota));
                    this.jTableMotoCuota.updateUI();
                    break;
                case 5://repuestos
                    this.datosRepuestos.setData(this.controlador.buscarRepuestos(repuestosServicesMotoEntrega));
                    this.jTableRepuestos.updateUI();
                    break;
                case 6://services
                    this.datosServices.setData(this.controlador.buscarServices(repuestosServicesMotoEntrega));
                    this.jTableServices.updateUI();
                    break;
            }
        }catch (DAOException ex) {
        this.mostrarError(ex);
    }
    }

    /**
     * Este mÃ©todo actualiza la base de datos con los datos modificados en la
     * tabla de los mivimientos de gestoria
     */
    public void actualizarGestoriaBD(CajaChicaDTO gestoria) {
        try {
            this.controlador.actualizarGestoria(gestoria);
        } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    }
    
     /**
     * Este mÃ©todo actualiza la base de datos con los datos modificados en la
     * tabla de los mivimientos de gestoria
     */
    public void actualizarVariosBD(CajaChicaDTO varios) {
        try {
            this.controlador.actualizarVarios(varios);
        } catch (DAOException ex) {
        this.mostrarError(ex);
    }
    }
 

    /**
     * este metodo actualiza la base de datos con los datos modificados en 
     * la tabla de movimientos de gastos
     * @param gastos 
     */
    public void actualizarGastosBD(CajaChicaDTO gastos) {
        try {
            this.controlador.actualizarGastos(gastos);
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }


    }

    /**
     * Este metodo actualiza los totales de las tablas
     * y del panel totales caja chica dependiando de la fecha que se le pasa
     * como parametro y del tipo. los totales del panel totales caja
     * chica siempre pertenecen a la fecha actual, los totales de la tabla se modifican
     * de acuerdo a la fecha que se le pasa como parametro
     * @param fecha
     * @param tipo 
     */
    public void actualizarTotalesCaja(Date fecha, String tipo) {
        java.sql.Date fechaActual = new java.sql.Date((new java.util.Date()).getTime());
        try {
            if (tipo.equals("Gestoría")) {
                this.jLabelTotalGestoriaTabla.setText("$ " + String.valueOf(this.controlador.totalGestoria(fecha)));
                this.jLabelTotalGestoria.setText("$ " + String.valueOf(this.controlador.totalGestoria(fechaActual)));
            } else {
                if (tipo.equals("Gastos")) {
                    this.jLabelTotalGastosTabla.setText("$ " + String.valueOf(this.controlador.totalGastos(fecha)));
                    this.jLabelTotalGastos.setText("$ " + String.valueOf(this.controlador.totalGastos(fechaActual)));
                } else {
                    if (tipo.equals("Repuestos")) {
                        this.jLabelTotalRepuestosTabla.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Repuestos") + this.controlador.totalCuotaMotoServicesRepuesto(fecha, "Repuestos")));
                        this.jLabelTotalRepuestos.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fechaActual, "Repuestos") + this.controlador.totalCuotaMotoServicesRepuesto(fechaActual, "Repuestos")));
                    } else {
                        if (tipo.equals("Services")) {
                            this.jLabelTotalServicesTabla.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Services") + this.controlador.totalCuotaMotoServicesRepuesto(fecha, "Services")));
                            this.jLabelTotalServices.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fechaActual, "Services") + this.controlador.totalCuotaMotoServicesRepuesto(fechaActual, "Services")));
                        } else {
                            if (tipo.equals("Motovehículo")) {
                                this.jLabelTotalMotoEntregaTabla.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fecha, "Motovehículo")));
                                this.jLabelTotalMotoEntrega.setText("$ " + String.valueOf(this.controlador.totalRepuestosServicesMotoEntrega(fechaActual, "Motovehículo")));
                            } else {
                                if(tipo.equals("Varios")){
                                    this.jLabelTotalVariosTabla.setText("$ " + String.valueOf(this.controlador.totalVarios(fecha)));
                                    this.jLabelTotalVarios.setText("$ " + String.valueOf(this.controlador.totalVarios(fechaActual)));
                            } else {
                                this.jLabelTotalMotoCuotaTabla.setText("$ " + String.valueOf(this.controlador.totalCuotaMotoServicesRepuesto(fecha,"Motovehículo")));
                                this.jLabelTotalMotoCuota.setText("$ " + String.valueOf(this.controlador.totalCuotaMotoServicesRepuesto(fechaActual,"Motovehículo")));
                            }
                        }
                    }
                }
            }
        }
            this.jLabelTotalCajaChicaPropertyChange(null);
        } catch (DAOException ex) {
                this.mostrarError(ex);
               
    }
    }

    /**
     * este metodo devielve un strin dependiendo del radio butoon
     * que este seleccionado cuando se queire agregar un gasto.
     * este estring sirve para guardarlo en la base de datos
     * en el atributo detalle
     * @return 
     */
    public String devolverDetalleGastos() {
        if (this.jRadioButtonGastosGastosFijos.isSelected()) {
            return "Gastos Fijos";
        } else {
            if (this.jRadioButtonGastosSueldos.isSelected()) {
                return "Sueldo";
            } else {
                return "Gastos Varios";
            }
        }
    }

    /**
     * este metodo devulve la fecha que esta seleccionada en el jdatechooser
     * @return 
     */
    public Date devolverFecha() {
        java.sql.Date fecha = new java.sql.Date((new java.util.Date()).getTime());
        if ((jDateChooserFechaCajaChica.getDate()) == null) {// si no hay nada seleccionado devuelve la fecha actual
            return fecha;
        } else {   // si hay alguna fecha seleccionada devuelve esa fecha     
            java.sql.Date fechaJDateC = new java.sql.Date((jDateChooserFechaCajaChica.getDate()).getTime());
            return fechaJDateC;
        }
    }

    /**
     * este metodo se invoca cuando se produce una excepcion
     * @param texto 
     */
    public void mostrarExcepcion(String texto) {
        this.jLabelAdvertenciaCaja.setText(texto);
        this.jDialogAdvertenciaCaja.setVisible(true);
    }

    public void modificarEstadoCajaChicaBuscar(boolean estado) {
        this.jTextFieldBuscarCajaChicaDescripcion.setText("");
        this.jTextFieldBuscarCajaChicaDescripcion.setEditable(estado);
        this.jTextFieldBuscarCajaChicaDetalle.setText("");
        this.jTextFieldBuscarCajaChicaDetalle.setEditable(estado);
        this.jTextFieldBuscarCajaChicaCliente.setText("");
        this.jTextFieldBuscarCajaChicaCliente.setEditable(estado);

    }

    /**
     * este metodo actualiza la tabla de morosos del panel de morosos
     */
    private void actualizarMorosos() {
        try {
            this.datosMorosos.setData(this.controlador.listarMorosos());
            this.jTableMorosos.updateUI();
        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

     private void buscarInformeDiario() {
        try {
            //String año = (infAño.getSelectedItem().toString());
            String anio = (infAnios.getSelectedItem().toString());
            Integer mes = (infMeses.getSelectedIndex());
            mes = mes + 1;
            mesPalabra = infMeses.getSelectedItem().toString();

            if (mes <= 9) {
                fecha1 = (anio + "-0" + mes.toString() + "-" + "01");
                fecha2 = (anio + "-0" + mes.toString() + "-" + "30");
            } else {
                fecha1 = (anio + "-" + mes.toString() + "-" + "01");
                fecha2 = (anio + "-" + mes.toString() + "-" + "31");
            }

            ArrayList<InformeDiarioDTO> informeDTO = new Fachada().listarInformes(fecha1, fecha2);
            this.datosPagosMes.setData(informeDTO);
            this.jTableInf1.updateUI();

        } catch (DAOException ex) {
            this.mostrarError(ex);

        }
    }

    private void hacerInformeResumido() {
        try {

            ArrayList<InformeDiarioDTO> informe2DTO = new Fachada().listarInformeResumido(fecha1, fecha2, mesPalabra);
            this.datosPagosMesResumido.setData(informe2DTO);
            this.jTableinf2.updateUI();

        } catch (DAOException ex) {
            this.mostrarError(ex);

        }
    }

    private void buscarInformeClienteMes() {
        try {
            String año = (inf2anios.getSelectedItem().toString());

            ArrayList<InfoClieMesDTO> informe3DTO = new Fachada().listarInfoClieMes(año);
            this.infoClienteMes.setData(informe3DTO);
            this.jTableInfCli1.updateUI();

        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    private void buscarInformesClieMesResumen() {
        try {
            String año = (inf2anios.getSelectedItem().toString());

            ArrayList<InfoClieMesDTO> informe4DTO = new Fachada().listarInfoClieMesResumen(año);
            this.infoClienteMesResumido.setData(informe4DTO);
            this.jTableInfCli2.updateUI();

        } catch (DAOException ex) {
            this.mostrarError(ex);
        }
    }

    private PagoDTO cargarPago() throws UIException {
        PagoDTO pago = new PagoDTO(this.cuota.getId(), this.jTextAreaDescripciónAgregarPago.getText());
        try {
            pago.setFechaPago(Fecha.convertirASQL(this.jDateChooserFechaPago.getDate()));
        } catch (Exception ex) {
            throw new UIException("La fecha del pago es incorrecta");
        }
        try {
            pago.setMontoPagado(Double.parseDouble(this.jTextFieldMontoAgregarPago.getText()));
            this.montoEntrega=this.jTextFieldMontoAgregarPago.getText();
        } catch (NumberFormatException numberFormatException) {
            throw new UIException("El precio del pago debe ser un número");
        }
        return pago;
    }
    
    private void mostrarNotificacion(String mensaje){
        this.jLabelNotificacion.setText(mensaje);
        this.jDialogNotificacion.setVisible(true);        
    }
    
    
private void formWindowOpened(java.awt.event.WindowEvent evt) {
        JPanelConFondo p = new JPanelConFondo();
        jPanelVentas.add( p , BorderLayout.CENTER);
        p.repaint();
    }

/**
 * Se ejecuta cada vez que se presiona la caja chica
 */
private void actualizarCajaChica(){
    this.jButtonEliminarMovimiento.setEnabled(false);
    this.actualizarGestoria(this.devolverFecha());
    this.actualizarGastos(this.devolverFecha());
    this.actualizarVarios(this.devolverFecha());
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Repuestos");
    this.actualizarTotalesCaja(this.devolverFecha(), "Repuestos");
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Services");
    this.actualizarTotalesCaja(this.devolverFecha(), "Services");
    this.actualizarRepuestosServicesMotoEntrega(this.devolverFecha(), "Motovehículo");
    this.actualizarTotalesCaja(this.devolverFecha(), "Motovehículo");
    this.actualizarMotoCuota(this.devolverFecha());
    this.actualizarTotalesCaja(this.devolverFecha(), "MotoCuota");
    this.jComboBoxPlanillas.setSelectedIndex(0);
}

    @Override
    public Image getIconImage() {
        Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource("imagenes/grandes/icono.png"));
        return retValue;
    }
}
